-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
62 lines (55 loc) · 3.71 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
57
58
59
60
61
62
{ // https://www.typescriptlang.org/tsconfig
"compilerOptions": {
//──────────────────────────────────────────────────────────────────────
// Modules
//──────────────────────────────────────────────────────────────────────
"allowUmdGlobalAccess": true,
"baseUrl": "./",
"module": "commonjs",
"moduleResolution": "node",
"strict": true,
"rootDirs": [
"./src/main/resources",
"./.xp-codegen"
],
"types": ["@item-enonic-types/global", "@itemconsulting/xp-storybook-utils/global"],
"paths": {
"/lib/tineikt/freemarker": ["./node_modules/@item-enonic-types/lib-freemarker"],
"/lib/xp/*": ["./node_modules/@enonic-types/lib-*"],
"/lib/*": ["./src/main/resources/lib/*", "./node_modules/@item-enonic-types/lib-*"],
"/*": ["./src/main/resources/*","./.xp-codegen/*", "./node_modules/@item-enonic-types/lib-item-blocks/dist/*"], // So one can import local files using absolute path (same as Enonic does during runtime).
},
//──────────────────────────────────────────────────────────────────────
// Emit
//──────────────────────────────────────────────────────────────────────
// "declaration": true, // tsup overrides this
// "declarationDir": "build/types", // Doesn't work with tsup
//──────────────────────────────────────────────────────────────────────
// Interop Constraints
//──────────────────────────────────────────────────────────────────────
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
//──────────────────────────────────────────────────────────────────────
// Language and Environment
//──────────────────────────────────────────────────────────────────────
"lib": [],
// We set target in tsup.config.ts instead
//"target": "ES3", // tsup WARNING Unrecognized target environment "ES3"
//"target": "ES5", // tsup Transforming const to the configured target environment ("ES5") is not supported yet
//──────────────────────────────────────────────────────────────────────
// Completeness
//──────────────────────────────────────────────────────────────────────
"skipLibCheck": true,
},
"exclude": [
"src/main/resources/assets/**/*.*",
"**/*.stories.ts"
],
"include": [
// Make sure default types matches Nashorn
"node_modules/typescript/lib/lib.es5.d.ts",
"src/main/resources/**/*.ts",
".xp-codegen/**/*.d.ts",
".storybook/**/*"
]
}