From 1d4cb7b0edd70963b3232011ee46f791c1bb8fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ti=E1=BA=BFn=20Nguy=E1=BB=85n=20Kh=E1=BA=AFc?= Date: Tue, 31 Mar 2026 23:13:13 +1300 Subject: [PATCH] fix: yarn postinstall --- .changeset/pretty-loops-go.md | 5 +++++ package.json | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .changeset/pretty-loops-go.md diff --git a/.changeset/pretty-loops-go.md b/.changeset/pretty-loops-go.md new file mode 100644 index 0000000..3e9f36d --- /dev/null +++ b/.changeset/pretty-loops-go.md @@ -0,0 +1,5 @@ +--- +"react-airplay": patch +--- + +Fixed Yarn postinstall bug. diff --git a/package.json b/package.json index 55b3e04..df526b5 100644 --- a/package.json +++ b/package.json @@ -41,9 +41,9 @@ "!**/.*" ], "scripts": { - "postinstall": "husky install", - "prepublishOnly": "pinst --disable", - "postpublish": "pinst --enable", + "postinstall": "husky", + "prepack": "yarn build && pinst --disable", + "postpack": "pinst --enable", "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib", "build": "bob build", "test": "jest", @@ -51,7 +51,6 @@ "lint": "eslint \"**/*.{js,ts,tsx}\"", "format": "prettier --write \"**/*.{js,ts,tsx,json,md}\" && clang-format -i ios/ReactAirplay/**/*.{h,mm}", "format:check": "prettier --check \"**/*.{js,ts,tsx,json,md}\" && clang-format --dry-run -Werror ios/ReactAirplay/**/*.{h,mm}", - "prepack": "yarn build", "publish:packages": "yarn build && yarn workspaces foreach -Apt --no-private npm publish --access public --tolerate-republish && yarn changeset tag" }, "keywords": [