From 812ae423e1fa68c82a29fb55de49fcea01e8022c Mon Sep 17 00:00:00 2001 From: Lexus Drumgold Date: Sat, 4 Sep 2021 18:57:10 -0400 Subject: [PATCH] fix(scripts): use `husky-run init` in `postinstall` script - https://github.com/typicode/husky/issues/884\#issuecomment-788594365 --- package.json | 7 ++----- yarn.lock | 19 ------------------- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index e52d2054..87fa5cd0 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "types": "./esm/index.d.ts", "scripts": { "clean": "rimraf node_modules", - "postinstall": "is-ci || husky-run install", + "postinstall": "is-ci || husky-run init", "check:format": "prettier --check .", "check:install": "yarn dlx @yarnpkg/doctor .", "check:style": "eslint . --ext md,js,ts", @@ -40,9 +40,7 @@ "fix:style": "yarn check:style --fix --cache", "build": "ts-node ./scripts/build", "prepack": "is-ci || dotenv -c production -- yarn build", - "release": "dotenv -c production -- ts-node ./scripts/release", - "prepublishOnly": "pinst --disable", - "postpublish": "pinst --enable" + "release": "dotenv -c production -- ts-node ./scripts/release" }, "devDependencies": { "@babel/core": "7.15.4", @@ -74,7 +72,6 @@ "is-ci": "3.0.0", "lint-staged": "11.0.0", "lodash": "4.17.21", - "pinst": "2.1.6", "prettier": "2.3.2", "prettier-plugin-sh": "0.7.0", "read-pkg": "5.2.0", diff --git a/yarn.lock b/yarn.lock index 0f7fff7f..0376efc9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -598,7 +598,6 @@ __metadata: is-ci: 3.0.0 lint-staged: 11.0.0 lodash: 4.17.21 - pinst: 2.1.6 prettier: 2.3.2 prettier-plugin-sh: 0.7.0 read-pkg: 5.2.0 @@ -2545,13 +2544,6 @@ __metadata: languageName: node linkType: hard -"fromentries@npm:^1.3.2": - version: 1.3.2 - resolution: "fromentries@npm:1.3.2" - checksum: 33729c529ce19f5494f846f0dd4945078f4e37f4e8955f4ae8cc7385c218f600e9d93a7d225d17636c20d1889106fd87061f911550861b7072f53bf891e6b341 - languageName: node - linkType: hard - "fs-access@npm:^1.0.1": version: 1.0.1 resolution: "fs-access@npm:1.0.1" @@ -4122,17 +4114,6 @@ __metadata: languageName: node linkType: hard -"pinst@npm:2.1.6": - version: 2.1.6 - resolution: "pinst@npm:2.1.6" - dependencies: - fromentries: ^1.3.2 - bin: - pinst: bin.js - checksum: 3644c352a7a956a0a299012609783456e055b2c4dab274bcbe8ea86d3347355a0552da31a7f3fb6ce91d6102f27b6dde64edd69c2cdaaeb811b87bf205655e36 - languageName: node - linkType: hard - "pkg-dir@npm:^2.0.0": version: 2.0.0 resolution: "pkg-dir@npm:2.0.0"