-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
26 lines (26 loc) · 960 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
/**
* Minimal TypeScript configuration for Node.js
* - To choose between native ESM or CJS modules, simply change the "type" option in package.json.
* ESM is the default option for the spence-s-starter-template, but the tscofig is set up to use commonjs when the package.json field is changed to "type": "commonjs", or removed.
*/
{
"compilerOptions": {
/** Tells TS to use either cjs or esm modules based on package.json */
"module": "Node16",
/** Build to the dist foler in the root dir */
"outDir": "dist",
/** Use the latest version of ECMAScript */
"target": "ES2022",
/** Because we care about types */
"strict": true,
/** Just commenting here for symmetry - RTFM */
"rootDir": ".",
/** Skip unneeded typechecking of node-modules */
"skipLibCheck": true,
/** Build stuffs */
"sourceMap": true,
"declaration": true
},
"exclude": ["node_modules", "dist"],
"include": ["src/**/*"]
}