Skip to content

Commit

Permalink
Merge remote-tracking branch 'bp/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Sep 19, 2023
2 parents 4693246 + 24c1f61 commit ffff7d3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .scripts/purge.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash


npm run clean
if [[ -d node_modules/nx ]]; then
nx reset
fi
rm -rf node_modules package-lock.json
npm run refresh

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"@commitlint/config-conventional": "17",
"@midwayjs/mock": "^3.12.2",
"@midwayjs/swagger": "^3.12.2",
"@midwayjs/web": "^3.12.2",
"@rollup/plugin-commonjs": "25",
"@rollup/plugin-node-resolve": "15",
"@types/koa": "2",
"@types/mocha": "10",
"@types/node": "20",
"@waiting/eslint-config": "^9.1.1",
Expand Down Expand Up @@ -63,7 +63,7 @@
"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": "npm run clean && nx reset && rm node_modules -rf && rm package-lock.json -f && npm run refresh",
"purge": "sh .scripts/purge.sh",
"repo:init": "sh .githooks/init-repo.sh",
"refresh": "npm i && npm run build",
"test": "lerna run test",
Expand Down

0 comments on commit ffff7d3

Please sign in to comment.