From 4f633a946c79b39caabcaa80debe46a640e387eb Mon Sep 17 00:00:00 2001 From: Benjamin Marguin Date: Thu, 1 Mar 2018 22:23:51 +0100 Subject: [PATCH] Add npm script to help releasing package versions --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5d74a8a..49655e2 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "url": "git://github.com/makinacorpus/Leaflet.TextPath.git" }, "license": "MIT", - "scripts": {}, + "scripts": { + "version": "git changelog -t $npm_package_version && git add CHANGELOG.md" + }, "peerDependencies": { "leaflet": "^1.3.1" }