forked from o1-labs/o1js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
25 lines (23 loc) · 1.19 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
{
"include": ["./src/**/*.ts"],
"exclude": ["./src/**/*.bc.js", "./src/build", "./src/examples"],
"compilerOptions": {
"rootDir": "./src",
"outDir": "dist",
"baseUrl": ".", // affects where output files end up
"target": "es2020", // goal: ship *the most modern syntax* that is supported by *all* browsers that support our Wasm
"module": "es2022", // allow top-level await
"moduleResolution": "nodenext", // comply with node + "type": "module"
"esModuleInterop": true, // to silence jest
"experimentalDecorators": true, // needed for decorators
"emitDecoratorMetadata": true, // needed for decorators
"useDefineForClassFields": false, // ensure correct behaviour of class fields with decorators
"strict": true, // for the full TypeScript experience
"strictPropertyInitialization": false, // to enable generic constructors, e.g. on CircuitValue
"importHelpers": true, // reduces size
"declaration": true, // declaration files are how library consumers get our types
"noEmitOnError": false, // avoid accidentally shipping with type errors
"allowJs": true, // to use JSDoc in some places where TS would be too cumbersome
"sourceMap": true
}
}