Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use mwtsc build #66

Merged
merged 3 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions v3/midway-framework-koa-esm/boilerplate/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,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 All @@ -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
10 changes: 5 additions & 5 deletions v3/midway-quick-start/boilerplate/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"@midwayjs/view-nunjucks": "^3.4.12"
},
"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 @@ -31,13 +31,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
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,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
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
Loading