-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsconfig.json
50 lines (48 loc) · 1.76 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist/node",
"baseUrl": ".", // affects where output files end up
"target": "es2021", // goal: ship *the most modern syntax* that is supported by *all* browsers that support our Wasm
"module": "nodenext", // 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,
"resolveJsonModule": true,
"skipLibCheck": true
},
"typedocOptions": {
"entryPoints": ["src/index.ts"],
"out": "docs",
"plugin": [],
"excludeExternals": true,
"sourceLinkTemplate": "https://github.com/zkcloudworker/zkcloudworker-lib/blob/master/{path}#L{line}"
},
"include": ["src/**/*"],
"exclude": [
"dist/**",
"tests/**",
"docs/**",
"experimental/**",
"mycache/**",
"nftcache/**",
"experimental/**",
"encryption/**",
"node_modules",
"deprecated/**",
"images/**"
],
"ts-node": {
"esm": true, // «———— enabling ESM for ts-node
"experimentalSpecifierResolution": "node"
}
}