From d9d0a4d63361cbbed8b4bdcc5cc5e0979695b81b Mon Sep 17 00:00:00 2001 From: Jason Dreyzehner Date: Fri, 21 Oct 2016 12:04:02 -0400 Subject: [PATCH] feature(package): unstage package via pre-commit hook before apply --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b2434908a..e635267af 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,15 @@ { - "changes": "changes to this file can be commited with the --no-verify option", "name": "distribution-not-selected", "description": "Choose a distribution by running 'npm run apply:copay' or 'npm run apply:bitpay'.", "primary-package-json": "See the tempate in app-template/package.json", + "pre-commit": "unstage-package", + "changes": "changes to this file can be commited with the --no-verify option", "scripts": { "postinstall": "npm run apply:copay && echo && echo \"Repo configured for standard Copay distribution. To switch to the BitPay distribution, run 'npm run apply:bitpay'.\" && echo", "start": "echo && echo \"Choose a distribution by running 'npm run apply:copay' or 'npm run apply:bitpay'.\" && echo", "apply:copay": "cd app-template && node apply.js copay && cd .. && npm i && npm run postapply", "apply:bitpay": "cd app-template && node apply.js bitpay && cd .. && npm i && npm run postapply", + "unstage-package": "git reset package.json", "clean-all": "git clean -dfx" }, "dependencies": {