Skip to content

Commit a1a4014

Browse files
committed
Use the version hook to update changelog.
1 parent 4e29147 commit a1a4014

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
},
1919
"homepage": "https://github.com/unexpectedjs/unexpected-documentation-site-generator",
2020
"scripts": {
21-
"changelog": "offline-github-changelog > CHANGELOG.md",
2221
"lint": "eslint .",
2322
"preversion": "npm run lint",
24-
"postversion": "npm run changelog && git add CHANGELOG.md && git commit --allow-empty -m 'Update changelog'"
23+
"version": "offline-github-changelog --next=${npm_package_version} > CHANGELOG.md && git add CHANGELOG.md"
2524
},
2625
"dependencies": {
2726
"async": "3.2.0",

0 commit comments

Comments
 (0)