-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
37 lines (37 loc) · 1004 Bytes
/
tsconfig.json
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
37
{
"compilerOptions": {
"lib": ["ES2020", "DOM"],
"target": "ES2020",
"module": "ES2020",
"baseUrl": ".",
"paths": {
"@onsonr/es/*": ["./src/*"]
},
"outDir": "./dist",
// `node16` is too strict and causes type errors for imported pkgs.
// We use `tsc-alias` to help add the file extensions instead.
"moduleResolution": "bundler",
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"esModuleInterop": true,
"skipLibCheck": true,
"strict": true,
"noImplicitAny": true,
"noFallthroughCasesInSwitch": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true
},
"include": ["src"],
"exclude": ["dist", "node_modules"],
"tsc-alias": {
// Add file extensions to imports/exports for ESM compatibility.
"resolveFullPaths": true,
// See: https://github.com/justkey007/tsc-alias/discussions/110.
"replacers": {
"base-url": {
"enabled": false
}
}
}
}