-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
executable file
·59 lines (56 loc) · 1.8 KB
/
tsconfig.json
File metadata and controls
executable file
·59 lines (56 loc) · 1.8 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"compileOnSave": true,
"compilerOptions": {
"allowJs": true,
// If you're not exporting something by default, then assume that you are.
"allowSyntheticDefaultImports": true,
// "baseUrl": "src",
"checkJs": false,
// Allows us to generate .d.ts files.
"declaration": true,
// Tells Typescript where to place the .d.ts files.
// In other words, it will put them in dist/cjs/types & dist/esm/types.
// dist will also contain a dist/index.d.ts (also occurred in Alex Eagleson tutorial).
"declarationDir": "typings",
// We will be using Rollup to bundle are javascript files.
// Thus we don't need Typescript to bundle the javascript files
// for us.
"emitDeclarationOnly": true,
"esModuleInterop": true, // default: true
// Typescript needs to be instructed to process JSX.
// Convert JSX into a createElement function call.
// Ensure that casing is correct in imports.
"forceConsistentCasingInFileNames": true, // default: true
"allowArbitraryExtensions": true,
"module": "ESNEXT", // default: "commonjs"
// Tell Typescript what process to use to look for modules.
"moduleResolution": "Node",
// Tells Typescript where to output the transpiled/bundled code.
"outDir": "dist", // Or "./dist"
// "removeComments": true,
"skipLibCheck": true, // default: true
// Useful for debugging.
"sourceMap": true,
"strict": true, // default: true
"target": "ESNext"
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.web.ts",
"src/**/*.native.ts",
"src/rollup.config.js"
],
"exclude": [
"node_modules",
"dist",
"types",
"*/**/.d.ts",
"typings",
"test",
"test-react-web-app",
"test-react-native-app",
"test-nextjs-app",
"src/__tests__"
]
}