forked from Hanabi-Live/hanabi-live
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
31 lines (25 loc) · 1.13 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
// This is a tsconfig.json intended to be used by packages in this monorepo.
{
// We extend the base IsaacScript config:
// https://github.com/IsaacScript/isaacscript/blob/main/packages/isaacscript-tsconfig/configs/tsconfig.base.json
"extends": "isaacscript-tsconfig/tsconfig.base.json",
// https://www.typescriptlang.org/docs/handbook/compiler-options.html
"compilerOptions": {
"rootDir": ".",
"baseUrl": ".",
// Performance optimization; see: https://www.npmjs.com/package/tslib
"importHelpers": true,
// "target" specifies the ECMAScript target version. By default, it is "ES3". This is too
// conservative; the project targets browsers / Node.js within a 2 year time-frame.
"target": "ES2021",
// "resolveJsonModule" is required to import files with ".json" extensions. By default, it is
// false.
"resolveJsonModule": true,
// Specifying "Node" is necessary in order for JSON files to be imported without erroring.
"moduleResolution": "Node",
"paths": {
"@hanabi/data": ["./packages/data/src/index.ts"],
"@hanabi/game": ["./packages/game/src/index.ts"],
},
},
}