-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtsconfig.json
More file actions
24 lines (24 loc) · 898 Bytes
/
Copy pathtsconfig.json
File metadata and controls
24 lines (24 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"lib": ["ES2020"],
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"declaration": true,
// No `declarationMap`/`sourceMap`. `files` publishes `dist` only, so every emitted
// map referenced a `../src/*.ts` that is not in the tarball: go-to-definition fell
// back to the `.d.ts` anyway, and 638 unusable map files were ~2 MB of install size
// for nothing. Publishing `src` is the other way to fix it, and is a packaging policy
// decision rather than a defect fix.
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
}