-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtsconfig.json
More file actions
36 lines (36 loc) · 1.35 KB
/
tsconfig.json
File metadata and controls
36 lines (36 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"extends": "./.config/tsconfig.base.json",
"compilerOptions": {
// DOM is needed for the WebAssembly globals used by the bundled
// WASM glue (Go runtime, acorn-wasm).
"lib": ["DOM", "ES2024"],
// VS Code extension is published with a CommonJS entrypoint
// (main = ./out/main.js) and consumed by Node, so we emit JS and
// .d.ts here. The check-only tsconfig (tsconfig.check.json) keeps
// noEmit on.
"module": "ESNext",
"moduleResolution": "bundler",
"outDir": "./out",
"rootDir": "./src",
"types": ["node", "vscode"],
// Extension ships its own type declarations.
"declaration": true,
// Synthetic default imports keep VS Code API + WASM glue ergonomic.
"allowSyntheticDefaultImports": true,
// VS Code extension uses parameter properties / decorators / etc.
// that emit runtime code — erasable-only would forbid them.
"erasableSyntaxOnly": false,
// Emit JS for the bundler/loader to consume.
"noEmit": false,
// Emit even when type errors exist so a single warning doesn't kill
// a development cycle — CI gates on tsconfig.check.json separately.
"noEmitOnError": false,
// Source maps useful for the extension host debugger.
"sourceMap": true
},
"typeAcquisition": {
"enable": true
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
}