-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
41 lines (41 loc) · 1.47 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
{
// These settings were informed by the TypeScript documentation for writing TypeScript libraries:
// https://www.typescriptlang.org/docs/handbook/modules/guides/choosing-compiler-options.html#im-writing-a-library
"compilerOptions": {
// Uses Node.js 16+ module resolution strategy
"module": "node16",
// Targets ECMAScript 2020 features, ensuring compatibility with older environments
"target": "es2020", // set to the *lowest* target you support
// Enables all strict type checking options for better code quality
"strict": true,
// Ensures that import/export syntax is treated verbatim, preventing automatic type-only imports
"verbatimModuleSyntax": true,
// Generates corresponding .d.ts files for TypeScript definitions
"declaration": true,
// Generates source map files for debugging
"sourceMap": true,
// Generates source maps for declaration files, useful for debugging
"declarationMap": true,
// Specifies the output directory for compiled files
"outDir": "dist",
// Specifies the root directory of input files
"rootDir": "src",
// Configures module resolution paths, allowing "@/" to resolve to "./src/"
"paths": {
"@/*": [
"./src/*"
]
},
},
// Specifies which files to include in the compilation
"include": [
"src/**/*.ts"
],
// Specifies which files/folders to exclude from compilation
"exclude": [
"node_modules",
"dist",
"test",
"examples"
]
}