修复build失败问题
This commit is contained in:
@@ -14,7 +14,7 @@ async function main() {
|
|||||||
|
|
||||||
// 执行Rollup构建
|
// 执行Rollup构建
|
||||||
console.log('📦 执行 Rollup 构建...');
|
console.log('📦 执行 Rollup 构建...');
|
||||||
execSync('rollup -c rollup.config.cjs', { stdio: 'inherit' });
|
execSync('npx rollup -c rollup.config.cjs', { stdio: 'inherit' });
|
||||||
|
|
||||||
// 生成package.json
|
// 生成package.json
|
||||||
console.log('📋 生成 package.json...');
|
console.log('📋 生成 package.json...');
|
||||||
|
|||||||
@@ -29,23 +29,16 @@
|
|||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"isolatedModules": false,
|
"isolatedModules": false,
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
|
||||||
"@esengine/ecs-framework": ["../core/src"],
|
|
||||||
"@esengine/ecs-framework/*": ["../core/src/*"]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*"
|
"src/**/*"
|
||||||
],
|
],
|
||||||
"typeRoots": [
|
|
||||||
"./node_modules/@types",
|
|
||||||
"./src/types"
|
|
||||||
],
|
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"bin",
|
"bin",
|
||||||
|
"dist",
|
||||||
|
"tests",
|
||||||
"**/*.test.ts",
|
"**/*.test.ts",
|
||||||
"**/*.spec.ts"
|
"**/*.spec.ts"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user