Skip to content

Commit 4b7f156

Browse files
committed
fix clean working dir
1 parent 1f2b6c1 commit 4b7f156

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,20 @@
4242
"check:format": "prettier --ignore-path .gitignore --log-level error .",
4343
"check:lint": "eslint --ignore-path .gitignore --ext .js,.jsx,.ts,.tsx --no-error-on-unmatched-pattern .",
4444
"clean": "rimraf coverage dist",
45+
"commit:clean": "npm run fix && git commit -am \"chore: Generated release files\"",
4546
"deploy": "exit 0",
4647
"dev": "node --inspect --loader ts-node/esm ./src/start.ts",
4748
"dist": "npm run clean && npm run build",
4849
"docs": "npm run docs:build",
4950
"docs:build": "typedoc src/index.ts",
50-
"docs:release": "npm run docs:build && git add docs/* && git commit -m \"docs: Generated public docs\"",
5151
"fix": "npm run fix:format && npm run fix:lint",
5252
"fix:format": "npm run check:format -- --write",
5353
"fix:lint": "npm run check:lint -- --fix --quiet",
54-
"log": "git add CHANGELOG.md && git commit -m \"docs: updated CHANGELOG.md\"",
5554
"postversion": "git push origin && git push origin --tags && npm publish --access public",
5655
"preversion": "git checkout main && git pull && npm install && npm run test && npm run dist",
57-
"release:major": "generate-changelog -M -x \"chore,test\" && npm run log && npm run docs:release && npm version major",
58-
"release:minor": "generate-changelog -m -x \"chore,test\" && npm run log && npm run docs:release && npm version minor",
59-
"release:patch": "generate-changelog -p -x \"chore,test\" && npm run log && npm run docs:release && npm version patch",
56+
"release:major": "generate-changelog -M -x \"chore,test\" && npm run docs && npm run commit:clean && npm version major",
57+
"release:minor": "generate-changelog -m -x \"chore,test\" && npm run docs && npm run commit:clean && npm version minor",
58+
"release:patch": "generate-changelog -p -x \"chore,test\" && npm run docs && npm run commit:clean && npm version patch",
6059
"start": "ts-node-esm ./src/start.ts",
6160
"test": "npm run test:types && npm run test:unit:coverage",
6261
"test:types": "tsc --noEmit",

0 commit comments

Comments
 (0)