mirror of
https://github.com/thedotmack/claude-mem.git
synced 2026-09-20 04:23:02 +08:00
fix(tsconfig): switch moduleResolution from removed node to bundler
TypeScript 6.x fails with TS5107 on moduleResolution "node" unless ignoreDeprecations is set, and TypeScript 7.0 removes the option entirely. openclaw/tsconfig.json had no ignoreDeprecations, so openclaw/install.sh (npm install && npx tsc) failed on every fresh install. Switch both configs to "bundler", drop the now-unneeded ignoreDeprecations from the root config, and declare types: ["node"] in the openclaw config so @types/node keeps resolving under the new strategy. Closes #3277 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"moduleResolution": "bundler",
|
||||
"lib": ["ES2022", "DOM"],
|
||||
"types": ["node"],
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src",
|
||||
"strict": true,
|
||||
|
||||
+1
-2
@@ -3,8 +3,7 @@
|
||||
"jsx": "react",
|
||||
"target": "ES2022",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"ignoreDeprecations": "6.0",
|
||||
"moduleResolution": "bundler",
|
||||
"lib": ["ES2022"],
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src",
|
||||
|
||||
Reference in New Issue
Block a user