Skip to content

Commit f037503

Browse files
committed
Bump changelog version on version
1 parent 8d49075 commit f037503

File tree

2 files changed

+82
-1
lines changed

2 files changed

+82
-1
lines changed

package-lock.json

Lines changed: 79 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@
2323
"node": ">6.9"
2424
},
2525
"scripts": {
26+
"changelog:bump": "cross-env-shell sed -i '7a # $npm_package_version\\n' ./CHANGELOG.md",
2627
"compile": "tsc",
2728
"coverage": "nyc npm run test",
2829
"coverage:ci": "npm run coverage && nyc report --reporter=text-lcov | coveralls",
2930
"test": "mocha --require ts-node/register src/**/*.spec.ts",
3031
"lint": "npm run lint:ts",
3132
"lint:ts": "tslint --type-check --project . src/**/*.ts",
3233
"preversion": "git push && npm test",
33-
"version": "npm run compile && git add -A dist",
34+
"version": "npm run compile && npm run changelog:bump && git add ./CHANGELOG.md && git add -A dist",
3435
"postversion": "git push && git push --tags"
3536
},
3637
"dependencies": {
@@ -43,6 +44,7 @@
4344
"@types/mocha": "^2.2.42",
4445
"@types/sinon": "^2.3.3",
4546
"chai": "^4.1.2",
47+
"cross-env": "^5.0.5",
4648
"mocha": "^3.5.0",
4749
"nyc": "^11.2.1",
4850
"sinon": "^3.2.1",

0 commit comments

Comments
 (0)