create-arena-project
Version:
神奇代码岛<->VSCode,从这里开始,创建一个神岛代码项目的脚手架。
31 lines (30 loc) • 1.15 kB
JSON
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"strict": true, // 启用严格类型检查模式,有助于发现潜在的类型错误。
"allowJs": true, // 允许在项目中包含JavaScript文件,以便于渐进式迁移或处理现有的JavaScript代码。
"checkJs": true, // 检查包含JavaScript文件中的类型错误,提高代码质量。
"removeComments": false, // 在编译过程中移除所有注释,减少生成代码的体积。
"declaration": true, // 自动生成声明文件
"declarationDir": "dist", // 声明文件生成的目录
"esModuleInterop": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"baseUrl": ".",
"rootDir": "../",
"outDir": "dist", // !!不要更改此项 !!
"typeRoots": ["./types"],
"lib": ["ES2017"],
"paths": {
"@src/*": ["./src/*"],
"@shares/*": ["../shares/*"],
"@client/*": ["./*"],
"@root/*": ["../*"]
}
},
"exclude": ["node_modules", "dist"]
}