From 4847403b84ef9e662fb6434b38120c937cb11351 Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Sat, 1 Oct 2016 16:33:10 -0400 Subject: [PATCH] add npm run changelog --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ed2f8af9cd..b8d0b3efb4 100644 --- a/package.json +++ b/package.json @@ -34,11 +34,12 @@ "coverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json", "lint": "kcheck", "prepublish": "cross-env BABEL_ENV=production npm run build", - "preversion": "npm run test", + "preversion": "npm run test && npm run changelog", "test": "npm run build && npm run lint && npm run test-only", "test-only": "ava test", "test_cov": "cross-env BABEL_ENV=test npm run build && npm run lint && nyc ava test", - "watch": "babel src --out-dir lib --watch" + "watch": "babel src --out-dir lib --watch", + "changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'" }, "nyc": { "include": [