|
13 | 13 | "prepare": "husky install && npm run build", |
14 | 14 | "prepare-commit-msg": "exec < /dev/tty && git cz --hook || true", |
15 | 15 | "commit-msg": "commitlint --edit $1", |
16 | | - "release": "npm run build && standard-version -a -n --header \"# Changelog\n\nAll notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n\n## Versions\"", |
17 | | - "release:dry": "standard-version --dry-run", |
| 16 | + "release": "standard-version -a --header \"# Changelog\n\nAll notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n\n## Versions\"", |
| 17 | + "bump:readme": "replace \"`npm run version:latest | tail -n -1`\" \"`npm run version:newest | tail -n -1`\" README.md", |
| 18 | + "version:latest": "standard-version --dry-run | sed -e '3!d' -e 's/.*from //g' -e 's/ to .*//g'", |
| 19 | + "version:newest": "standard-version --dry-run | sed -e '3!d' -e 's/.*to //g'", |
18 | 20 | "changelog:latest": "rexreplace \"^.*?#+\\s\\[.*?\n.*?(?=\\s*#+\\s\\[)\" \"_\" -s -M -G -m -o \"CHANGELOG.md\" | tail -n +7 > CHANGELOG-LATEST.md", |
19 | 21 | "trypublish": "npm publish || true" |
20 | 22 | }, |
|
61 | 63 | "optimize-css-assets-webpack-plugin": "^5.0.4", |
62 | 64 | "prettier": "^2.2.1", |
63 | 65 | "prettier-webpack-plugin": "^1.2.0", |
| 66 | + "replace": "1.2.1", |
64 | 67 | "rexreplace": "6.1.1", |
65 | 68 | "standard-version": "9.1.1", |
66 | 69 | "style-loader": "^2.0.0", |
|
117 | 120 | }, |
118 | 121 | "standard-version": { |
119 | 122 | "scripts": { |
120 | | - "postbump": "npx replace \"`npx standard-version --dry-run | sed -e '1!d' -e 's/.*from //g' -e 's/ to .*//g'`\" \"`npx standard-version --dry-run | sed -e '1!d' -e 's/.*to //g'`\" README.md" |
| 123 | + "prerelease": "npm run bump:readme", |
| 124 | + "postbump": "npm run build", |
| 125 | + "precommit": "git add build/* README.md" |
121 | 126 | } |
122 | 127 | } |
123 | 128 | } |
0 commit comments