Skip to content

Commit 10f8f06

Browse files
make package install work
Everything is bundled, so we don't want the postinstall command to run outside of dev
1 parent 46d3735 commit 10f8f06

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"typecheck": "tsc --noEmit",
2323
"commit": "node ./.build/run-behind.js git-cz 'yarn lint' 'yarn typecheck'",
2424
"release": "release-it",
25-
"postinstall": "patch-package"
25+
"postinstall": "patch-package",
26+
"prepublishOnly": "pinst --disable",
27+
"postpublish": "pinst --enable"
2628
},
2729
"devDependencies": {
2830
"@types/node": "^16.10.3",
@@ -38,6 +40,7 @@
3840
"kleur": "^4.1.4",
3941
"ora": "^6.0.1",
4042
"patch-package": "^6.4.7",
43+
"pinst": "^2.1.6",
4144
"postinstall-postinstall": "^2.1.0",
4245
"prettier": "^2.4.1",
4346
"release-it": "^14.11.6",

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,11 @@ form-data@4.0.0:
12561256
combined-stream "^1.0.8"
12571257
mime-types "^2.1.12"
12581258

1259+
fromentries@^1.3.2:
1260+
version "1.3.2"
1261+
resolved "https://registry.yarnpkg.com/fromentries/-/fromentries-1.3.2.tgz#e4bca6808816bf8f93b52750f1127f5a6fd86e3a"
1262+
integrity sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==
1263+
12591264
fs-extra@^7.0.1:
12601265
version "7.0.1"
12611266
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9"
@@ -2193,6 +2198,13 @@ picomatch@^2.0.5, picomatch@^2.2.1:
21932198
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad"
21942199
integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==
21952200

2201+
pinst@^2.1.6:
2202+
version "2.1.6"
2203+
resolved "https://registry.yarnpkg.com/pinst/-/pinst-2.1.6.tgz#8d968b8ec1dac5dddcfc976c735592dbec58b42c"
2204+
integrity sha512-B4dYmf6nEXg1NpDSB+orYWvKa5Kfmz5KzWC29U59dpVM4S/+xp0ak/JMEsw04UQTNNKps7klu0BUalr343Gt9g==
2205+
dependencies:
2206+
fromentries "^1.3.2"
2207+
21962208
postinstall-postinstall@^2.1.0:
21972209
version "2.1.0"
21982210
resolved "https://registry.yarnpkg.com/postinstall-postinstall/-/postinstall-postinstall-2.1.0.tgz#4f7f77441ef539d1512c40bd04c71b06a4704ca3"

0 commit comments

Comments
 (0)