forked from topcoder-platform/topcoder-react-utils
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.types.json
45 lines (39 loc) · 1.34 KB
/
tsconfig.types.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
41
42
43
44
45
// TS config for ESLint, editor plugins, and other tools that look-up and use
// the default tsconfig.json file.
{
"extends": "./config/typescript/base.json",
// Keep these in case any mocks / tests are declared within "src" code tree.
"exclude": [
"**/__mocks__/**",
"**/__tests__/**",
],
"include": [
"src",
"types.d.ts",
],
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
// BEWARE: Different settings are likely to transform dynamic import()
// statements in the code, thus breaking Webpack's code splitting.
// See: https://davidea.st/articles/webpack-typescript-code-split-wont-work
"module": "ESNext",
"moduleResolution": "Node",
"outDir": "build/types-code",
"paths": {
// BEWARE: Don't do this, as in other TS config files:
//
// "*": ["./src/shared/*", "./src/*", "./*"]
//
// "ts-alias" does not act on "*" rule, as we need to get correctly
// resolved relative paths in the generated .d.ts files, so that they
// can work in host projects.
"components": ["./src/shared/components"],
"components/*": ["./src/shared/components/*"],
"server/*": ["./src/server/*"],
"utils": ["./src/shared/utils"],
"utils/*": ["./src/shared/utils/*"],
},
"rootDirs": [".", "build/types-scss"],
},
}