-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
40 lines (38 loc) · 1.29 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
31
32
33
34
35
36
37
38
39
40
{
"include": ["./src", "./config"],
"exclude": ["node_modules"],
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"lib": ["ESNext"],
"outDir": "./build",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"strict": true,
"checkJs": true,
"allowJs": true,
"skipLibCheck": true,
"baseUrl": ".",
"paths": {
/*
Allow using e.g. `import '@/sample-module' instead of using relative paths.
This makes import paths easier to manage, since it keeps you out of
relative-path-hell (e.g. '../../../../lib/sample-module' turns into '@/sample-module').
The tsc compiler *does not* convert these to functional paths. This project uses
`tsc-alias` after compiling (using `npm run build`) to convert after compile.
Other options include using Babel with the module resolution extension.
Change these to whatever you like!
(Note that using a "$" instead of "@" makes it less ambiguous if you are referring
to a local or npm module.)
*/
"@/*": ["src/lib/*"],
"$/*": ["src/*"],
"$cli/*": ["src/cli/*"],
"$test/*": ["src/test/*"]
}
}
}