Skip to content

Commit

Permalink
fix: ensure postinstall is only run for development, and not when con…
Browse files Browse the repository at this point in the history
…suming the npm package itself
  • Loading branch information
haakemon committed May 24, 2022
1 parent 0315c5d commit 4eaa914
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"build": "rollup -c",
"build-storybook": "build-storybook --output-dir ./storybook-static",
"postinstall": "husky install",
"prepack": "pinst --disable",
"postpack": "pinst --enable",
"add-component": "node scripts/add-component.mjs"
},
"dependencies": {
Expand Down Expand Up @@ -86,6 +88,7 @@
"jest-environment-jsdom": "^28.1.0",
"lint-staged": "^12.4.1",
"node-polyfill-webpack-plugin": "^1.1.4",
"pinst": "^3.0.0",
"postcss": "^8.4.14",
"prettier": "^2.6.2",
"react": "^18.1.0",
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ __metadata:
jest-environment-jsdom: ^28.1.0
lint-staged: ^12.4.1
node-polyfill-webpack-plugin: ^1.1.4
pinst: ^3.0.0
postcss: ^8.4.14
prettier: ^2.6.2
react: ^18.1.0
Expand Down Expand Up @@ -15402,6 +15403,15 @@ __metadata:
languageName: node
linkType: hard

"pinst@npm:^3.0.0":
version: 3.0.0
resolution: "pinst@npm:3.0.0"
bin:
pinst: bin.js
checksum: 4ae48a6a60f79c37071233af51b4d91bfc85cfa3c12b66ccda60cdb642b4d14a4ab0cb3587afc55b1f6192cea1772a5e4822026a0d0d3528296edef00cc2d61f
languageName: node
linkType: hard

"pirates@npm:^4.0.1, pirates@npm:^4.0.4, pirates@npm:^4.0.5":
version: 4.0.5
resolution: "pirates@npm:4.0.5"
Expand Down

0 comments on commit 4eaa914

Please sign in to comment.