Skip to content

Commit

Permalink
fix(scripts): use husky-run init in postinstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Sep 4, 2021
1 parent 7aba1a3 commit 812ae42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,15 @@
"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",
"fix:format": "prettier --write .",
"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",
Expand Down Expand Up @@ -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",
Expand Down
19 changes: 0 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 812ae42

Please sign in to comment.