-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
tsconfig.json
38 lines (37 loc) · 1.05 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
{
"compilerOptions": {
// sets the baseUrl to the current folder for if `paths` are ever added.
"baseUrl": ".",
// emits type declaration files
"declaration": true,
// allow properly importing commonjs files
"esModuleInterop": true,
// imports are case sensitive
"forceConsistentCasingInFileNames": true,
// do not emit any generated code on error
"noEmitOnError": true,
// output to dist/
"outDir": "dist",
// pretty error messages
"pretty": true,
// set the typescript root dir to the project root
"rootDir": ".",
// ignore typescript errors in dependencies
"skipLibCheck": true,
// emit source maps
"sourceMap": true,
// force "use strict"
"strict": true,
"exactOptionalPropertyTypes": true,
"lib": ["ES2021"],
"module": "ESNext",
"target": "ES2021",
"moduleResolution": "NodeNext",
"resolveJsonModule": true,
// TODO: Switch to Edge Runtime types when they work
// "types": ["@edge-runtime/types"]
"types": ["@cloudflare/workers-types"]
},
// ignore node_modules and dist
"exclude": ["node_modules"]
}