Skip to content

Commit

Permalink
修改启动方式为midway最新
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-team-official committed May 6, 2024
1 parent 3b131a5 commit 94e6ff5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
27 changes: 13 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
"@midwayjs/cache-manager": "^3.15.8",
"@midwayjs/core": "^3.15.8",
"@midwayjs/cron": "^3.15.9",
"@midwayjs/cross-domain": "^3.15.10",
"@midwayjs/cross-domain": "^3.15.11",
"@midwayjs/decorator": "^3.15.8",
"@midwayjs/info": "^3.15.10",
"@midwayjs/koa": "^3.15.10",
"@midwayjs/info": "^3.15.11",
"@midwayjs/koa": "^3.15.11",
"@midwayjs/logger": "^3.4.0",
"@midwayjs/static-file": "^3.15.10",
"@midwayjs/static-file": "^3.15.11",
"@midwayjs/typeorm": "^3.15.8",
"@midwayjs/upload": "^3.15.10",
"@midwayjs/validate": "^3.15.10",
"@midwayjs/view-ejs": "^3.15.10",
"@midwayjs/upload": "^3.15.11",
"@midwayjs/validate": "^3.15.11",
"@midwayjs/view-ejs": "^3.15.11",
"axios": "^1.6.8",
"cache-manager-ioredis-yet": "^2.0.3",
"cache-manager-ioredis-yet": "^2.0.4",
"decompress": "^4.2.1",
"download": "^8.0.0",
"ipip-ipdb": "^0.6.0",
Expand All @@ -36,18 +36,17 @@
"svg2png-wasm": "^1.4.1",
"typeorm": "^0.3.20",
"uuid": "^9.0.1",
"ws": "^8.16.0"
"ws": "^8.17.0"
},
"devDependencies": {
"@midwayjs/cli": "^2.1.1",
"@midwayjs/mock": "^3.15.8",
"@types/jest": "^29.5.12",
"@types/koa": "^2.15.0",
"@types/node": "20",
"cross-env": "^7.0.3",
"jest": "^29.7.0",
"mwts": "^1.3.0",
"mwtsc": "^1.7.2",
"mwtsc": "^1.8.1",
"ts-jest": "^29.1.2",
"typescript": "~5.4.5"
},
Expand All @@ -56,12 +55,12 @@
},
"scripts": {
"start": "NODE_ENV=production node ./bootstrap.js",
"dev": "cross-env && cross-env NODE_ENV=local TS_NODE_TYPE_CHECK=false TS_NODE_TRANSPILE_ONLY=true midway-bin dev --ts",
"cov": "midway-bin cov --ts",
"dev": "cross-env NODE_ENV=local mwtsc --watch --run @midwayjs/mock/app.js",
"cov": "jest --coverage",
"lint": "mwts check",
"lint:fix": "mwts fix",
"ci": "npm run cov",
"build": "midway-bin build -c",
"build": "mwtsc --cleanOutDir",
"pm2:start": "pm2 start ./bootstrap.js -i max --name cool-admin",
"pm2:stop": "pm2 stop cool-admin & pm2 delete cool-admin"
},
Expand Down
4 changes: 4 additions & 0 deletions src/modules/base/event/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export class BaseAppEvent {
setTimeout(() => {
const filePath = path.join(
this.app.getBaseDir(),
'..',
'src',
'modules',
'base',
'config.ts'
Expand Down Expand Up @@ -72,6 +74,8 @@ export class BaseAppEvent {
setTimeout(() => {
const filePath = path.join(
this.app.getBaseDir(),
'..',
'src',
'config',
'config.default.ts'
);
Expand Down
2 changes: 2 additions & 0 deletions src/modules/user/event/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export class UserAppEvent {
setTimeout(() => {
const filePath = path.join(
this.app.getBaseDir(),
'..',
'src',
'modules',
'user',
'config.ts'
Expand Down

0 comments on commit 94e6ff5

Please sign in to comment.