-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
64 lines (64 loc) · 2.53 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"name": "npm-mono-base",
"version": "1.0.0",
"description": "nodejs模板",
"private": true,
"type": "module",
"devDependencies": {
"@commitlint/cli": "19",
"@commitlint/config-conventional": "19",
"@midwayjs/mock": "^3.18.2",
"@midwayjs/swagger": "^3.18.2",
"@midwayjs/validate": "^3.18.2",
"@types/koa": "2",
"@types/mocha": "10",
"@types/node": "22",
"@waiting/eslint-config": "^15.1.0",
"@waiting/shared-core": "^23.23.0",
"@waiting/shared-types": "^23.22.0",
"autocannon": "8",
"cross-env": "7",
"mocha": "10",
"mwtsc": "^1.12.0",
"swagger-ui-dist": "^5.17.14",
"ts-node": "^10.9.2",
"tsc-alias": "^1.8.10",
"typescript": "^5.6.3"
},
"engines": {
"node": ">=20.11.0"
},
"workspaces": [
"packages/*"
],
"scripts": {
"add:pkg": "sh .scripts/add-pkg.sh",
"add:mwcp": "sh .scripts/add-mwcp.sh",
"bp:add": "git remote add bp https://github.com/waitingsong/npm-mono-base",
"bp:sync": "git fetch --all -v && git pull origin && git merge bp/main -m \"Merge remote-tracking branch 'bp/main'\" ",
"bp:sync-force": "git fetch --all -v && git pull origin && git merge bp/main --allow-unrelated-histories -m \"Merge remote-tracking branch 'bp/main'\" ",
"bp:syncxo": "git fetch --all -v && git pull origin && git merge bp/main -m \"Merge remote-tracking branch 'bp/main'\" -Xours",
"bootstrap": "npm i --loglevel info --disturl=https://npmmirror.com/dist/",
"build": "sh .scripts/build.sh",
"build:prod": "sh .scripts/build-prod.sh",
"ci": "npm run cov",
"clean": "lerna clean --loglevel error --yes && lerna run clean && rm -rf .nx",
"cov": "sh .scripts/cov.sh",
"lint": "sh .scripts/lint.sh",
"lint:cycle": "lerna exec -- madge --circular --extensions ts src",
"lint:nofix": "sh .scripts/lint-no-fix.sh",
"lint:s": "sh .scripts/lint-no-fix-s.sh",
"postbuild": "rm -rf packages/*/dist/.mwcc-cache",
"postinstall": "npm run repo:init",
"postpublish": "rm -rf packages/*/npm-shrinkwrap.json",
"pub": "bash .scripts/publish.sh --no-private --conventional-commits --create-release github",
"pub:canary": "bash .scripts/publish.sh --canary",
"pub:beta": "bash .scripts/publish.sh --dist-tag beta --force-publish=*",
"pub:next": "bash .scripts/publish.sh --dist-tag next",
"purge": "sh .scripts/purge.sh",
"repo:init": "sh .githooks/init-repo.sh",
"refresh": "npm run clean && npm update --no-audit && npm run build",
"test": "lerna run test",
"ptest": "sh .scripts/test.sh"
}
}