Skip to content

Commit c5c4bd2

Browse files
author
Tajudeen
committed
fix: exclude Deno-specific files from TypeScript compilation
- Add skipLibCheck to React tsconfig.json to skip type checking of declaration files - Exclude node_modules and cac/deno directories from TypeScript compilation - Add exclusions to main src/tsconfig.json to prevent compilation of Deno files This fixes build errors where TypeScript was trying to compile Deno-specific files in node_modules/cac/deno/ which use Deno-specific syntax and imports.
1 parent 30750b3 commit c5c4bd2

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"./vscode-dts/vscode.d.ts"
3434
],
3535
"exclude": [
36-
"vs/workbench/contrib/webview/browser/pre/service-worker.js"
36+
"vs/workbench/contrib/webview/browser/pre/service-worker.js",
37+
"vs/workbench/contrib/cortexide/browser/react/node_modules/**",
38+
"**/node_modules/cac/deno/**"
3739
]
3840
}

src/vs/workbench/contrib/cortexide/browser/react/tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@
1111
"moduleResolution": "NodeNext",
1212
"module": "NodeNext",
1313
"esModuleInterop": true,
14+
"skipLibCheck": true,
1415
},
1516
"include": [
1617
// this is just for type checking, so src/ is the correct dir
1718
"./src/**/*.ts",
1819
"./src/**/*.tsx"
1920
],
21+
"exclude": [
22+
"node_modules/**",
23+
"**/node_modules/**",
24+
"**/cac/deno/**"
25+
]
2026
"plugins": [
2127
{
2228
"name": "next"

0 commit comments

Comments
 (0)