Skip to content

Commit

Permalink
chore(pkg): add preversion/version lerna scripts hook
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed May 21, 2021
1 parent b65150b commit d933f1f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
"test:watch": "jest --watch",
"test:prod": "jest --coverage --silent",
"coverage:upload": "rm -rf ./coverage && npm run coverage && node ./scripts/mapCoverage.js && codecov",
"prevesion": "npm run build && npm run lint && npm run test",
"afterversion": "ts-node scripts/release changelog && git add -A",
"version:alpha": "npm run prevesion && lerna version prerelease --preid alpha && npm run afterversion",
"version:beta": "npm run prevesion && lerna version prerelease --preid beta && npm run afterversion",
"version:rc": "npm run prevesion && lerna version prerelease --preid rc && npm run afterversion",
"version:patch": "npm run prevesion && lerna version patch && npm run afterversion",
"version:minor": "npm run prevesion && lerna version minor && npm run afterversion",
"version:preminor": "npm run prevesion && lerna version preminor --preid beta && npm run afterversion",
"version:major": "npm run prevesion && lerna version major && npm run afterversion",
"preversion": "npm run build && npm run lint && npm run test",
"version": "ts-node scripts/release changelog && git add -A",
"version:alpha": "lerna version prerelease --preid alpha",
"version:beta": "lerna version prerelease --preid beta",
"version:rc": "lerna version prerelease --preid rc",
"version:patch": "lerna version patch",
"version:minor": "lerna version minor",
"version:preminor": "lerna version preminor --preid beta",
"version:major": "lerna version major",
"release:force": "lerna publish from-package --yes && ts-node scripts/release release",
"prelease:force": "lerna publish from-package --yes --dist-tag next && ts-node scripts/release release",
"release": "lerna publish",
Expand Down

0 comments on commit d933f1f

Please sign in to comment.