-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtsconfig.json
53 lines (45 loc) · 1.64 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
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
// Sets a base directory from which to resolve bare specifier module names.
// "baseUrl": "./src/main/resources", // This breaks the paths below
"baseUrl": ".",
"declaration": false,
"esModuleInterop": true,
"noImplicitAny": true,
// A series of entries which re-map imports to lookup locations relative
// to the baseUrl if set, or to the tsconfig file itself otherwise.
"paths": {
"/lib/xp/*": ["node_modules/@enonic-types/lib-*"],
"/*": ["src/main/resources/*"],
},
// Default: The longest common path of all non-declaration input files.
// If composite is set, the default is instead the directory containing
// the tsconfig.json file.
// When TypeScript compiles files, it keeps the same directory structure
// in the output directory as exists in the input directory.
"rootDir": ".",
// Using rootDirs, you can inform the compiler that there are many
// “virtual” directories acting as a single root. This allows the
// compiler to resolve relative module imports within these “virtual”
// directories, as if they were merged in to one directory.
"rootDirs": [
"src/main/resources",
],
"skipLibCheck": true,
"strict": true,
"types": [
"@enonic-types/global"
]
},
// Specifies an array of filenames or patterns to include in the program.
// These filenames are resolved relative to the directory containing the
// tsconfig.json file.
"include": [
"src/main/resources/**/*.ts"
],
// Specifies an array of filenames or patterns that should be skipped when resolving include.
"exclude": [
"src/main/resources/**/*.d.ts"
]
}