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": [