From 2e6f32527143c8888030314162d03e66aba58fcb Mon Sep 17 00:00:00 2001 From: mohsinulhaq Date: Tue, 23 Feb 2021 17:54:02 +0530 Subject: [PATCH] add pinst for husky dev postinstall --- package.json | 7 +++++-- yarn.lock | 12 ++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b0476f8..edac549 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-popper-tooltip", - "version": "4.1.1", + "version": "4.1.2", "description": "React tooltip library built around react-popper", "author": "Mohsin Ul Haq ", "license": "MIT", @@ -36,7 +36,9 @@ "test": "jest tests/", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook", - "postinstall": "husky install" + "postinstall": "husky install", + "prepublishOnly": "pinst --disable", + "postpublish": "pinst --enable" }, "jest": { "modulePathIgnorePatterns": [ @@ -88,6 +90,7 @@ "husky": "^5.1.1", "jest": "^26.6.3", "lint-staged": "^10.5.4", + "pinst": "^2.1.6", "prettier": "^2.2.1", "react": "^17.0.1", "react-dom": "^17.0.1", diff --git a/yarn.lock b/yarn.lock index b17c007..5f16aee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5765,6 +5765,11 @@ from2@^2.1.0: inherits "^2.0.1" readable-stream "^2.0.0" +fromentries@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/fromentries/-/fromentries-1.3.2.tgz#e4bca6808816bf8f93b52750f1127f5a6fd86e3a" + integrity sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg== + fs-extra@^0.30.0: version "0.30.0" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-0.30.0.tgz#f233ffcc08d4da7d432daa449776989db1df93f0" @@ -8875,6 +8880,13 @@ pify@^4.0.1: resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== +pinst@^2.1.6: + version "2.1.6" + resolved "https://registry.yarnpkg.com/pinst/-/pinst-2.1.6.tgz#8d968b8ec1dac5dddcfc976c735592dbec58b42c" + integrity sha512-B4dYmf6nEXg1NpDSB+orYWvKa5Kfmz5KzWC29U59dpVM4S/+xp0ak/JMEsw04UQTNNKps7klu0BUalr343Gt9g== + dependencies: + fromentries "^1.3.2" + pirates@^4.0.0, pirates@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87"