Skip to content

Commit

Permalink
chore: use mwtsc build
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Jan 14, 2024
1 parent f3cd414 commit 9258aab
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 21 deletions.
8 changes: 4 additions & 4 deletions v3/midway-component/boilerplate/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/index.js",
"typings": "index.d.ts",
"scripts": {
"build": "cross-env midway-bin build -c",
"test": "cross-env midway-bin test --ts",
"cov": "cross-env midway-bin cov --ts",
"build": "mwtsc --clean-build",
"test": "cross-env NODE_ENV=unittest jest",
"cov": "jest --coverage",
"lint": "mwts check",
"lint:fix": "mwts fix"
},
Expand All @@ -20,7 +20,6 @@
],
"license": "MIT",
"devDependencies": {
"@midwayjs/cli": "^2.0.0",
"@midwayjs/core": "^3.12.0",
"@midwayjs/logger": "^3.1.0",
"@midwayjs/mock": "^3.12.0",
Expand All @@ -29,6 +28,7 @@
"cross-env": "^6.0.0",
"jest": "^29.2.2",
"mwts": "^1.3.0",
"mwtsc": "^1.4.0",
"ts-jest": "^29.0.3",
"typescript": "~4.8.0"
}
Expand Down
10 changes: 5 additions & 5 deletions v3/midway-framework-express/boilerplate/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"@midwayjs/logger": "^3.1.0"
},
"devDependencies": {
"@midwayjs/cli": "^2.0.0",
"@midwayjs/mock": "^3.12.0",
"@types/body-parser": "^1.19.2",
"@types/express": "^4.17.13",
Expand All @@ -21,6 +20,7 @@
"cross-env": "^6.0.0",
"jest": "^29.2.2",
"mwts": "^1.3.0",
"mwtsc": "^1.4.0",
"ts-jest": "^29.0.3",
"typescript": "~4.8.0"
},
Expand All @@ -29,13 +29,13 @@
},
"scripts": {
"start": "NODE_ENV=production node ./bootstrap.js",
"dev": "cross-env NODE_ENV=local midway-bin dev --ts",
"test": "midway-bin test --ts",
"cov": "midway-bin cov --ts",
"dev": "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",
"lint:fix": "mwts fix",
"ci": "npm run cov",
"build": "midway-bin build -c"
"build": "mwtsc --clean-build"
},
"midway-bin-clean": [
".vscode/.tsbuildinfo",
Expand Down
2 changes: 1 addition & 1 deletion v3/midway-framework-koa-esm/boilerplate/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"lint": "mwts check",
"lint:fix": "mwts fix",
"ci": "npm run cov",
"build": "cross-env rm -rf dist && tsc"
"build": "mwtsc --clean-build"
},
"repository": {
"type": "git",
Expand Down
10 changes: 5 additions & 5 deletions v3/midway-framework-koa/boilerplate/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
"@midwayjs/validate": "^3.12.0"
},
"devDependencies": {
"@midwayjs/cli": "^2.0.0",
"@midwayjs/mock": "^3.12.0",
"@types/jest": "^29.2.0",
"@types/koa": "^2.13.4",
"@types/node": "14",
"cross-env": "^6.0.0",
"jest": "^29.2.2",
"mwts": "^1.3.0",
"mwtsc": "^1.4.0",
"ts-jest": "^29.0.3",
"typescript": "~4.8.0"
},
Expand All @@ -29,13 +29,13 @@
},
"scripts": {
"start": "NODE_ENV=production node ./bootstrap.js",
"dev": "cross-env NODE_ENV=local midway-bin dev --ts",
"test": "midway-bin test --ts",
"cov": "midway-bin cov --ts",
"dev": "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",
"lint:fix": "mwts fix",
"ci": "npm run cov",
"build": "midway-bin build -c"
"build": "mwtsc --clean-build"
},
"midway-bin-clean": [
".vscode/.tsbuildinfo",
Expand Down
9 changes: 5 additions & 4 deletions v3/midway-quick-start/boilerplate/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"cross-env": "^6.0.0",
"jest": "^29.2.2",
"mwts": "^1.3.0",
"mwtsc": "^1.4.0",
"ts-jest": "^29.0.3",
"typescript": "~4.8.0"
},
Expand All @@ -31,13 +32,13 @@
},
"scripts": {
"start": "NODE_ENV=production node ./bootstrap.js",
"dev": "cross-env NODE_ENV=local midway-bin dev --ts",
"test": "midway-bin test --ts",
"cov": "midway-bin cov --ts",
"dev": "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",
"lint:fix": "mwts fix",
"ci": "npm run cov",
"build": "midway-bin build -c"
"build": "mwtsc --clean-build"
},
"midway-bin-clean": [
".vscode/.tsbuildinfo",
Expand Down
4 changes: 2 additions & 2 deletions v3/midway-serverless-http-new/boilerplate/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"lint": "mwts check",
"lint:fix": "mwts fix",
"ci": "npm run cov",
"build": "cross-env rm -rf dist && tsc"
"build": "mwtsc --clean-build"
},
"dependencies": {
"@midwayjs/core": "^3.12.0",
Expand All @@ -34,7 +34,7 @@
"cross-env": "^7.0.3",
"mocha": "^10.2.0",
"mwts": "^1.3.0",
"mwtsc": "^1.0.0",
"mwtsc": "^1.4.0",
"ts-node": "^10.9.1",
"typescript": "~5.1.0"
}
Expand Down

0 comments on commit 9258aab

Please sign in to comment.