-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtsconfig.json
More file actions
38 lines (38 loc) · 1.19 KB
/
tsconfig.json
File metadata and controls
38 lines (38 loc) · 1.19 KB
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
38
{
"compilerOptions": {
"outDir": "dist",
"allowJs": true,
"alwaysStrict": true,
// enabling declaration (.d.ts) emit
"declaration": true,
// optional - in general it's a good practice to decouple declaration files from your actual transpiled JavaScript files
// "declarationDir": "./dist/dts",
// optional if you're using babel to transpile TS -> JS
// "emitDeclarationOnly": true
"downlevelIteration": true,
"lib": ["es2017", "dom"],
"module": "esnext",
// "module": "CommonJS", // used for local testing
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"isolatedModules": true,
"noEmit": true, // older
"esModuleInterop": true,
"moduleResolution": "node",
"noImplicitAny": true,
"sourceMap": true,
"target": "es5",
"baseUrl": "./",
"paths": {
"*": ["src/@customTypes/*"],
"crypto": [
"node_modules/crypto-js" // use browser version of crypto library
]
},
"resolveJsonModule": true
},
"exclude": ["dist", "dist.browser", "node_modules"],
"include": ["src/**/*.js", "src/**/*.ts"]
}