Skip to content

Commit

Permalink
Update scripts in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Sep 26, 2024
1 parent 76c0c08 commit 7331cc1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 9 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
"lint": "eslint",
"fix": "eslint --fix",
"lint-staged": "lint-staged",
"build": "node --experimental-json-modules build.js",
"build": "node build.js",
"docs": "jsdoc -c jsdoc.json",
"release": "npm run build && npm test && git checkout dev && git pull && npm version $SEMVER && git push && git checkout master && git merge dev && git push --follow-tags && git checkout dev",
"yesno": "node -e \"const yesno = require('yesno'); yesno({ question: 'Are you sure you want to continue?' }).then(ok => process.exit(ok ? 0 : 1));\"",
"release": "test $(git rev-parse --abbrev-ref HEAD) = dev && git pull && npm test && npm run build && npm version $SEMVER && npm run --silent yesno && (git push && git checkout master && git merge dev && git push --follow-tags && git checkout dev) || (git tag -d $(git describe --tags) && git reset --hard HEAD~1)",
"release:patch": "SEMVER=patch npm run release",
"release:minor": "SEMVER=minor npm run release",
"release:major": "SEMVER=major npm run release",
Expand Down Expand Up @@ -63,7 +64,8 @@
"license-checker": "^25.0.1",
"lint-staged": "^15.2.10",
"mocha": "^10.7.3",
"pre-commit": "^1.2.2"
"pre-commit": "^1.2.2",
"yesno": "^0.4.0"
},
"dependencies": {
"axios": "^1.7.7",
Expand Down

0 comments on commit 7331cc1

Please sign in to comment.