From 462a76ef1f9abd2803d8c4f8892e9cc5380f824e Mon Sep 17 00:00:00 2001 From: nick thomas Date: Mon, 25 Dec 2023 17:46:22 -0800 Subject: [PATCH] better changelog scripts --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5b9b6aa..9892069 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,11 @@ "build:base": "esbuild src/index.js --define:VERSION=\\\"$npm_package_version\\\" --outfile=index.js", "build:minify": "esbuild index.js --keep-names --minify --outfile=dist/tonic.min.js", "build": "npm run build:base && npm run build:minify", - "changelog": "auto-changelog --template keepachangelog --breaking-pattern 'BREAKING CHANGE' && git add CHANGELOG.md && git commit -m 'changelog'", + "changelog": "auto-changelog --template keepachangelog --breaking-pattern 'BREAKING CHANGE'", "preversion": "npm run lint", - "prepublishOnly": "npm run build", - "postversion": "npm run changelog && git push --follow-tags && npm publish" + "version": "npm run changelog && git add CHANGELOG.md && git commit -m 'changelog'", + "postversion": "git push --follow-tags && npm publish", + "prepublishOnly": "npm run build" }, "devDependencies": { "@nichoth/tapzero": "0.8.4",