-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
56 lines (49 loc) · 3.02 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{ // https://www.typescriptlang.org/tsconfig
"compilerOptions": {
//──────────────────────────────────────────────────────────────────────
// Modules
//──────────────────────────────────────────────────────────────────────
"allowUmdGlobalAccess": true,
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"/lib/xp/*": ["node_modules/@enonic-types/lib-*"],
"/*": ["src/main/resources/*"], // So one can import local files using absolute path (same as Enonic does during runtime).
},
// By default all visible ”@types” packages are included in your compilation.
// Packages in node_modules/@types of any enclosing folder are considered visible.
// For example, that means packages within ./node_modules/@types/,
// ../node_modules/@types/, ../../node_modules/@types/, and so on.
// If typeRoots is specified, only packages under typeRoots will be included.
"typeRoots": [
"node_modules/@types",
"node_modules/@enonic-types"
],
"types": [
"global" // Already added via typeRoots? nope, doesn't work that way
],
//──────────────────────────────────────────────────────────────────────
// Interop Constraints
//──────────────────────────────────────────────────────────────────────
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
//──────────────────────────────────────────────────────────────────────
// Language and Environment
//──────────────────────────────────────────────────────────────────────
"lib": [],
//──────────────────────────────────────────────────────────────────────
// Completeness
//──────────────────────────────────────────────────────────────────────
"skipLibCheck": true,
},
"exclude": [
"src/main/resources/assets/**/*.*",
"src/main/resources/static/**/*.*",
],
"include": [
// Make sure default types matches Nashorn
"node_modules/typescript/lib/lib.es5.d.ts",
"src/main/resources/**/*.tsx",
"src/main/resources/**/*.ts"
]
}