From 9240aa1baf032035420f2b050a23f91441ca8c71 Mon Sep 17 00:00:00 2001 From: Bret Comnes Date: Fri, 28 Feb 2020 13:24:35 -0700 Subject: [PATCH] chore: improve build scripts --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 88bcc1d..1b4bcb3 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "scripts": { "test": "standard", "release": "git push --follow-tags && gh-release", - "version": "ncc build index.js -o dist -s && auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md dist" + "version": "npm run build && auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md dist", + "build": "rm -rf dist && ncc build index.js -o dist -s" }, "repository": { "type": "git",