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:
stantheman0128
2026-07-17 11:28:03 +08:00
parent f5633c1f84
commit 2080dd67bc
2 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -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
View File
@@ -3,8 +3,7 @@
"jsx": "react",
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "node",
"ignoreDeprecations": "6.0",
"moduleResolution": "bundler",
"lib": ["ES2022"],
"outDir": "./dist",
"rootDir": "./src",