-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtsconfig.json
40 lines (40 loc) · 1.44 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
// Aggregate project referencing all composite sub-projects, for use with `tsc`
// type checker and `ts-node`.
// NOTE: Only refer to this file via `tsconfig.json` in the root, otherwise it will
// use the wrong root directory.
{
"extends": "./configs/tsconfig.base",
// We'll also typecheck the config files in the root
"files": [
"./babel.config.cjs",
"./jest.config.cjs",
"./.eslintrc.cjs"
],
"include": [],
// Specific compiler options necessary for `tsconfig-paths`. It expects the
// path mapping in the root `tsconfig.json`, it cannot extract it from
// referenced projects. These mappings do not have an impact on the
// referenced projects though.
"compilerOptions": {
"noEmit": true,
"baseUrl": "./",
"paths": {
"@lib/*": ["src/lib/*"],
"@src/*": ["src/*"],
"@test-utils/*": ["tests/unit/utils/*"]
}
},
// Reference all sub-projects
"references": [
{ "path": "./build" },
{ "path": "./src/lib" },
{ "path": "./src/mb_caa_dimensions" },
{ "path": "./src/mb_enhanced_cover_art_uploads" },
{ "path": "./src/mb_multi_external_links" },
{ "path": "./tests/unit/build" },
{ "path": "./tests/unit/lib" },
{ "path": "./tests/unit/mb_caa_dimensions" },
{ "path": "./tests/unit/mb_enhanced_cover_art_uploads" },
{ "path": "./tests/unit/utils" }
]
}