From e18419da0761047d9ab9913330901a5371262cca Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Fri, 30 Sep 2016 01:06:46 +0100 Subject: [PATCH 1/2] Update changelog script --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 889d9ba..1348422 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "url": "https://github.com/seegno/clean-deep.git" }, "scripts": { - "changelog": "github-changes $npm_package_options_changelog", + "changelog": "github_changelog_generator --no-issues --header-label='# Changelog' --future-release=v$npm_config_future_release && sed -i '' -e :a -e '$d;N;2,4ba' -e 'P;D' CHANGELOG.md", "coverage": "nyc --reporter=html --reporter=text npm test", "lint": "eslint src test", "prepublish": "npm run transpile", @@ -43,7 +43,6 @@ "babel-preset-es2015-node4": "^2.1.0", "eslint": "^3.6.1", "eslint-config-seegno": "^6.0.0", - "github-changes": "^1.0.0", "mocha": "^3.1.0", "nyc": "^8.3.0", "pre-commit": "^1.0.10", From 54347e546fef8674a508ce81879ff19f42094420 Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Fri, 30 Sep 2016 01:07:28 +0100 Subject: [PATCH 2/2] Add version script --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1348422..d23c620 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "lint": "eslint src test", "prepublish": "npm run transpile", "test": "NODE_ENV=test mocha $npm_package_options_mocha", - "transpile": "rm -rf dist/* && babel src --out-dir dist" + "transpile": "rm -rf dist/* && babel src --out-dir dist", + "version": "npm run changelog --future-release=$npm_package_version && npm run transpile && git add -A CHANGELOG.md dist" }, "dependencies": { "lodash.isempty": "^4.4.0",