Skip to content

fix: add prepare script so git dependency installs include the built lib output#107

Open
slowsats wants to merge 1 commit into
serenity-kit:mainfrom
pietas-society:fix/git-dependency-prepare
Open

fix: add prepare script so git dependency installs include the built lib output#107
slowsats wants to merge 1 commit into
serenity-kit:mainfrom
pietas-society:fix/git-dependency-prepare

Conversation

@slowsats

@slowsats slowsats commented Jul 5, 2026

Copy link
Copy Markdown

npm, yarn 1, and pnpm run prepare — but not prepack — for git dependencies, so installing this package from a git URL currently ships no lib/. Metro consumers survive via the "react-native": "src/index" field, but anything resolving main/module/types (plain Node, consumer-side tsc) dangles. This adds "prepare": "bob build" alongside the existing prepack.
Verified: a fresh clone installed with --ignore-scripts has no lib/; yarn prepare produces lib/commonjs, lib/module, lib/typescript; an end-to-end npm install git+file://… consumer receives all three targets, and postinstall still extracts the vendored libsodium. Side effect worth knowing: prepare also runs on local installs in the repo (~4s, devDeps are present) — matching how older react-native-builder-bob templates behaved.

…lib output

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant