my-crawler/tsconfig.json

15 lines
739 B
JSON
Raw Normal View History

2025-02-19 18:36:25 +08:00
{
"compilerOptions": {
"target": "ES6", // 编译成 ES6 代码
"module": "commonjs", // 使用 CommonJS 模块系统Node.js 默认使用)
"outDir": "./dist", // 编译后的文件输出目录
"rootDir": "./src", // TypeScript 源文件目录
"strict": true, // 启用严格模式,建议开启
"esModuleInterop": true, // 允许默认导入非 ES6 模块
"skipLibCheck": true, // 跳过库文件的类型检查
"forceConsistentCasingInFileNames": true // 强制一致的文件命名大小写
},
"include": ["src/**/*.ts"], // 包含 src 目录下的所有 TypeScript 文件
"exclude": ["node_modules"] // 排除 node_modules 目录
}