my-crawler/tsconfig.json

15 lines
739 B
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"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 目录
}