-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
30 lines (24 loc) · 865 Bytes
/
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
{
"compilerOptions": {
"strict": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
// tsup build target priorities:
// 1. `tsup.config.js` file's `target` option
// 2. `tsconfig.json` file's `target` value
// 3. `node14` if unspecified (undesirable)
// TypeScript configuration supports ECMAScript versions.
// Reference https://www.typescriptlang.org/tsconfig#target
// tsup configuration supports esbuild's target values.
// e.g. es2020, chrome58, firefox57, node12, node12.19.0
// Reference https://tsup.egoist.dev/#target-environment
// Reference https://esbuild.github.io/api/#target
// Node.js 18 LTS supports all ES2022 APIs.
// Reference https://node.green/#ES2022
"target": "ES2022",
"lib": ["DOM", "ES2022"],
"allowJs": true,
"checkJs": true,
"outDir": "dist" // tsup default output directory
}
}