-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
36 lines (34 loc) · 1.18 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
{
"include": ["src/**/*.ts"],
"compilerOptions": {
"target": "es2017",
"module": "es2020",
"lib": ["es2020"],
"outDir": "./build",
"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/*"],
"$test/*": ["src/test/*"]
}
}
}