From e54123f9bb0e37fb71612f2e57d54c8ac7c96a23 Mon Sep 17 00:00:00 2001 From: Kevin Schmidt Date: Thu, 18 Nov 2021 07:53:40 -0700 Subject: [PATCH] chore(husky): disable postinstall in published package --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index bcffc23..0098501 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,9 @@ "build": "echo 'Please run the build script in the opensphere project' && exit 1", "package:update": "if git diff --name-only ORIG_HEAD HEAD | grep --quiet package.json; then echo 'UPDATE: package.json updated, consider running yarn in the workspace root'; fi", "semantic-release": "semantic-release", - "postinstall": "husky install" + "postinstall": "husky install", + "prepublishOnly": "pinst --disable", + "postpublish": "pinst --enable" }, "keywords": [ "opensphere", @@ -105,10 +107,11 @@ "npm-run-all": "^4.1.5", "opensphere-build-closure-helper": "^7.0.0", "opensphere-build-resolver": "^10.0.0", + "pinst": "^2.1.6", "rimraf": "^3.0.2", + "semantic-release": "^18.0.0", "stylelint": "^14.0.0", - "stylelint-config-opensphere": "^1.0.0", - "semantic-release": "^18.0.0" + "stylelint-config-opensphere": "^1.0.0" }, "dependencies": { "@ngageoint/geopackage": "^4.0.0-beta.36",