-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
51 lines (51 loc) · 1.21 KB
/
tsconfig.json
File metadata and controls
51 lines (51 loc) · 1.21 KB
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
51
{
"compilerOptions": {
"target": "ESNext",
// "module": "ESNext",
"module": "ESNext",
// "moduleResolution": "Bundler",
"moduleResolution": "node",
"strict": true,
"skipLibCheck": true,
"declaration": true,
"sourceMap": true,
"lib": ["ESNext"],
"types": ["@cloudflare/workers-types", "@types/node"],
"jsx": "react-jsx",
"jsxImportSource": "hono/jsx",
/** baseUrl 用来告诉编译器到哪里去查找模块,使用非相对模块时必须配置此项 */
"baseUrl": ".",
/** 非相对模块导入的路径映射配置,根据 baseUrl 配置进行路径计算 */
"paths": {
"@/*": ["src/*"]
},
"isolatedModules": true,
"esModuleInterop": true,
// "noEmit": true,
"rootDir": ".",
"outDir": "dist",
"forceConsistentCasingInFileNames": true
},
"ts-node": {
"esm": true,
"transpileOnly": true,
"files": true,
"experimentalResolver": true
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"types/**/*.d.ts",
"vite.config.ts",
"vitest.config.ts",
"worker-configuration.d.ts",
"src/*.d.ts",
"src/types.d.ts",
"src/environment.d.ts"
],
/** 编译器默认排除的编译文件 */
"exclude": ["dist", "test"]
}