-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
48 lines (42 loc) · 1.86 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
{
// This file should only include files that configures the build system.
// It should ignore all actual source files.
// Read more about tsconfig.json at:
// https://www.typescriptlang.org/tsconfig
// 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": [
"**/*.ts"
],
// Specifies an array of filenames or patterns that should be skipped when
// resolving include.
// Important: exclude only changes which files are included as a result of
// the include setting. A file specified by exclude can still become part of
// your codebase due to an import statement in your code, a types inclusion,
// a /// <reference directive, or being specified in the files list.
// It is not a mechanism that prevents a file from being included in the
// codebase - it simply changes what the include setting finds.
"exclude": [
"**/*.d.ts",
"src/**/*.*", // Avoid Enonic XP source files
],
"compilerOptions": {
// Do NOT add this as it will resolve tsup to the local tsup folder, rather
// than the tsup node_module.
// "baseUrl": ".",
"lib": [
"es2023" // string.replaceAll
],
// 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 types is specified, only packages listed will be included in the global scope.
// This feature differs from typeRoots in that it is about specifying only the exact
// types you want included, whereas typeRoots supports saying you want particular folders.
"types": [
"node"
],
},
}