-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
30 lines (25 loc) · 1.2 KB
/
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
{
"include": ["./src/**/*.{ts}"],
"exclude": ["node_modules", "dist"],
"compilerOptions": {
/* Paths */
"outDir": "./dist",
"rootDir": "./src",
/* Project */
"target": "ESNext", // TypeScript is not used for building, allow all modern features
"module": "CommonJS", // TypeScript is not used for building, allow all modern features
/* Build */
// `tsc` only used to build type declaration files (`.d.ts`)
"declaration": true,
"declarationMap": true, // Allow jumping to source file instead of 'd.ts' file
"allowJs": true,
/* Imports */
"moduleResolution": "Node", // Yup, we are using Node
"forceConsistentCasingInFileNames": true, // Error out if import and file system have a casing mismatch. Recommended by TS.
"esModuleInterop": true, // Improve importing from CJS modules, recommended by TS: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#support-for-import-d-from-cjs-from-commonjs-modules-with---esmoduleinterop
"skipLibCheck": true, // Significant perf increase by skipping checking .d.ts files, particularly those in node_modules. Recommended by TS.
"resolveJsonModule": true, // Allow importing .json files
/* Additional */
"strict": true
},
}