|
42 | 42 | "check:format": "prettier --ignore-path .gitignore --log-level error .", |
43 | 43 | "check:lint": "eslint --ignore-path .gitignore --ext .js,.jsx,.ts,.tsx --no-error-on-unmatched-pattern .", |
44 | 44 | "clean": "rimraf coverage dist", |
| 45 | + "commit:clean": "npm run fix && git commit -am \"chore: Generated release files\"", |
45 | 46 | "deploy": "exit 0", |
46 | 47 | "dev": "node --inspect --loader ts-node/esm ./src/start.ts", |
47 | 48 | "dist": "npm run clean && npm run build", |
48 | 49 | "docs": "npm run docs:build", |
49 | 50 | "docs:build": "typedoc src/index.ts", |
50 | | - "docs:release": "npm run docs:build && git add docs/* && git commit -m \"docs: Generated public docs\"", |
51 | 51 | "fix": "npm run fix:format && npm run fix:lint", |
52 | 52 | "fix:format": "npm run check:format -- --write", |
53 | 53 | "fix:lint": "npm run check:lint -- --fix --quiet", |
54 | | - "log": "git add CHANGELOG.md && git commit -m \"docs: updated CHANGELOG.md\"", |
55 | 54 | "postversion": "git push origin && git push origin --tags && npm publish --access public", |
56 | 55 | "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", |
60 | 59 | "start": "ts-node-esm ./src/start.ts", |
61 | 60 | "test": "npm run test:types && npm run test:unit:coverage", |
62 | 61 | "test:types": "tsc --noEmit", |
|
0 commit comments