feat:提交
This commit is contained in:
@@ -1,28 +1,29 @@
|
||||
{
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules","samples","tests"],
|
||||
// "compilerOptions": {
|
||||
// "target": "ES6",
|
||||
"module": "ESNext", // 必须用 ESNext
|
||||
// "esModuleInterop": true,
|
||||
// "moduleResolution": "node",
|
||||
// "skipLibCheck": true,
|
||||
// "sourceMap": true,
|
||||
// "outDir": "./dist",
|
||||
// "rootDir": ".", // 改为 "." 包含所有文件
|
||||
// "strict": true,
|
||||
// "baseUrl": ".", // 确保路径解析正确
|
||||
// "paths": {
|
||||
// // 可选:自定义路径映射(如 "@/*": ["src/*"])
|
||||
// }
|
||||
// },
|
||||
// "include": ["src/**/*", "tests/**/*"], // 包含测试文件
|
||||
"compilerOptions": {
|
||||
/* Visit https://aka.ms/tsconfig to read more about this file */
|
||||
|
||||
/* Language and Environment */
|
||||
// "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||
"target": "ES6",
|
||||
/* Modules */
|
||||
"module": "commonjs", /* Specify what module code is generated. */
|
||||
// "rootDir": "./", /* Specify the root folder within your source files. */
|
||||
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
||||
|
||||
/* Emit */
|
||||
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
||||
"outDir": "./dist", /* Specify an output folder for all emitted files. */
|
||||
"rootDir": "./src",
|
||||
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
||||
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
||||
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
||||
|
||||
/* Type Checking */
|
||||
"strict": true, /* Enable all strict type-checking options. */
|
||||
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
|
||||
"sourceMap": true
|
||||
}
|
||||
}
|
||||
"types": [],
|
||||
"resolveJsonModule": true, // 允许导入 .json 文件
|
||||
"esModuleInterop": true, // 确保 CommonJS/ESM 兼容
|
||||
"module": "ESNext", // 推荐使用 ESM
|
||||
"moduleResolution": "Node" // 确保 Node.js 模块解析
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"dist"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user