Skip to content

Commit e8e7a50

Browse files
committed
fix: add prepack script to ensure lib/ is built before publishing
Yarn Berry does not automatically run the `prepare` script during `yarn pack`. Add `prepack` script to explicitly run `bob build`, ensuring the `lib/` directory is generated before the tarball is created. Fixes #259
1 parent 3b19f0e commit e8e7a50

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"lint": "eslint \"**/*.{js,ts,tsx}\"",
4242
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build example/ios/Pods lib example-expo/ios/build example-expo/android/build example-expo/android/app/build example-expo/ios/Pods",
4343
"prepare": "bob build",
44+
"prepack": "bob build",
4445
"release": "release-it --only-version"
4546
},
4647
"keywords": [

0 commit comments

Comments
 (0)