Skip to main content

max / makenotwork

1.2 KB · 28 lines History Blame Raw
1 {
2 "compilerOptions": {
3 "target": "ES2022",
4 "module": "ESNext",
5 "moduleResolution": "Bundler",
6 "lib": ["ES2022", "DOM", "DOM.Iterable"],
7 "strict": true,
8 "noUnusedLocals": true,
9 "noUnusedParameters": true,
10 "noFallthroughCasesInSwitch": true,
11 "noImplicitReturns": true,
12 "verbatimModuleSyntax": true,
13 "isolatedModules": true,
14 "erasableSyntaxOnly": true,
15 "allowImportingTsExtensions": true,
16 "rewriteRelativeImportExtensions": true,
17 "skipLibCheck": true,
18 "sourceMap": true,
19 "outDir": "../static/dist",
20 "rootDir": "src",
21 "types": []
22 },
23 "//": "Source imports use explicit .ts extensions so `node --test` resolves them natively (type-stripping); rewriteRelativeImportExtensions rewrites them to .js on emit so the browser loads the compiled output. Test files are type-stripped by Node and skipped by tsc.",
24 "// erasableSyntaxOnly": "Node's type stripping erases types but cannot transform syntax, so enums, namespaces, and constructor parameter properties fail at `npm test` with ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX. This flag makes tsc reject them at typecheck instead, where the error names the problem.",
25 "include": ["src"],
26 "exclude": ["**/*.test.ts"]
27 }
28