-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathtsconfig.json
More file actions
20 lines (18 loc) · 686 Bytes
/
Copy pathtsconfig.json
File metadata and controls
20 lines (18 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"extends": "./packages/typescript/tsconfig.json",
"compilerOptions": {
"declaration": false,
"declarationMap": false,
"skipLibCheck": true
},
// `*.ts` helper scripts are run with ts-node, which executes them as CommonJS. The base config's
// `module: esnext` / `moduleResolution: bundler` is an ESM-only combo that makes ts-node hand the
// `.ts` file to Node's native ESM loader (which can't load `.ts`). ts-node merges this `ts-node`
// key across the `extends` chain, so this single override covers every package that extends this config.
"ts-node": {
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node"
}
}
}