mirror of
https://github.com/microsoft/vscode.git
synced 2026-06-29 02:45:58 +01:00
822f146aac
vscode-api-tests: use explicit "types" instead of "typeRoots" Switches tsconfig from typeRoots-only (which only auto-includes @types/* found at the literal path ./node_modules/@types) to an explicit "types" list. Explicit types resolve via Node module resolution, so they keep working regardless of whether npm hoists @types/node to the workspace root or keeps it extension-local. Refs microsoft/vscode-engineering#2912 — the recurring TS2591 "Cannot find name 'process'" failure on the build agent after #319389 changed the lockfile is consistent with @types/node being hoisted to a path the typeRoots-only config can't see. Matches the pattern already used by extensions/github, extensions/copilot, etc.
18 lines
290 B
JSON
18 lines
290 B
JSON
{
|
|
"extends": "../tsconfig.base.json",
|
|
"compilerOptions": {
|
|
"rootDir": "./src",
|
|
"outDir": "./out",
|
|
"types": [
|
|
"node",
|
|
"mocha"
|
|
],
|
|
"skipLibCheck": true
|
|
},
|
|
"include": [
|
|
"src/**/*",
|
|
"../../src/vscode-dts/vscode.d.ts",
|
|
"../../src/vscode-dts/vscode.proposed.*.d.ts"
|
|
]
|
|
}
|