Skip to content

Skip postinstall binary download when running in the repo itself#14

Open
ytkimirti wants to merge 1 commit intomasterfrom
fix/skip-postinstall-in-repo
Open

Skip postinstall binary download when running in the repo itself#14
ytkimirti wants to merge 1 commit intomasterfrom
fix/skip-postinstall-in-repo

Conversation

@ytkimirti
Copy link
Copy Markdown

When running npm i or bun i in the repo during development, the postinstall script would attempt to download the binary unnecessarily. This skips the download when __dirname is not inside node_modules, which means the package is not installed as a dependency.

When running `npm i` or `bun i` in the repo during development, the
postinstall script would attempt to download the binary unnecessarily.
This skips the download when __dirname is not inside node_modules,
which means the package is not installed as a dependency.
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