diff --git a/package.json b/package.json index d961694..89450b1 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "mwtsc": "^1.15.1", "pkg": "^5.8.1", "ts-jest": "^29.2.5", - "typescript": "~5.7.3" + "typescript": "~5.7.3", + "rimraf": "^5.0.5" }, "engines": { "node": ">=18.0.0" @@ -48,7 +49,7 @@ "scripts": { "start": "NODE_ENV=production node ./bootstrap.js", "entity": "cool entity", - "dev": "cool check entity && bundle && cross-env NODE_ENV=local mwtsc --watch --run @midwayjs/mock/app.js", + "dev": "cool check entity && cross-env NODE_ENV=local mwtsc --watch --run @midwayjs/mock/app.js", "test": "cross-env NODE_ENV=unittest jest", "cov": "jest --coverage", "lint": "mwts check", @@ -56,7 +57,7 @@ "ci": "npm run cov", "build": "cool entity && bundle && mwtsc --cleanOutDir", "build:obfuscate": "cool entity && bundle && mwtsc --cleanOutDir && cool obfuscate", - "pkg": "npm run build && pkg . -d > build/pkg.log", + "pkg": "rimraf build && mkdir build && npm run build && pkg . -d > build/pkg.log", "pm2:start": "pm2 start ./bootstrap.js -i 1 --name cool-admin", "pm2:stop": "pm2 stop cool-admin & pm2 delete cool-admin" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0ce3bd7..a6d3c9e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -108,6 +108,9 @@ importers: pkg: specifier: ^5.8.1 version: 5.8.1 + rimraf: + specifier: ^5.0.5 + version: 5.0.10 ts-jest: specifier: ^29.2.5 version: 29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@22.10.5))(typescript@5.7.3) diff --git a/public/welcome.html b/public/index.html similarity index 84% rename from public/welcome.html rename to public/index.html index 063bf0b..f729840 100644 --- a/public/welcome.html +++ b/public/index.html @@ -8,8 +8,8 @@