-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
19 lines (19 loc) · 1.05 KB
/
Copy pathtsconfig.json
File metadata and controls
19 lines (19 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"// note": "Types are generated FROM JSDoc in the .js sources — bareguard ships as plain ESM JS. `npm run build:types` emits .d.ts into ./types (mirroring src/); `npm run typecheck` runs this single project. Both ./types and src/**/*.d.ts are git-ignored and built via the `prepublishOnly` script. Full `strict` is off because the hand-written JS throws ~130 strict errors that don't affect the emitted public types — but `strictNullChecks` IS on: it catches real null-safety bugs in the sources (it surfaced ~45, several genuine) and is the strictness that actually matters for the emitted declarations. checkJs validates the JSDoc that drives those declarations.",
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"declarationDir": "./types",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"target": "ES2022",
"lib": ["ES2022"],
"types": ["node"],
"strict": false,
"strictNullChecks": true,
"skipLibCheck": true
},
"include": ["src/**/*.js"]
}