Repository navigation
Remove postinstall build and binary download - #44
Open
koterpillar wants to merge 3 commits into
Open
koterpillar wants to merge 3 commits into
koterpillar wants to merge 3 commits into
Conversation
🦋 Changeset detectedLatest commit: b19756e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
koterpillar
force-pushed
the
remove-postinstall
branch
3 times, most recently
from
November 17, 2026 08:48
6b0f661 to
67a551c
Compare
koterpillar
force-pushed
the
remove-postinstall
branch
from
November 17, 2026 09:58
67a551c to
b19756e
Compare
koterpillar
marked this pull request as ready for review
November 17, 2026 09:59
koterpillar
added a commit
to atlassian-forks/node-cloudflared
that referenced
this pull request
Nov 17, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove the
postinstallhook and build helper so package installation does not build JavaScript or download the native binary. README is updated to show binary installation before library use.Stacked on #43. Merge that first. Review the changes added by this PR. The base remains upstream
mainbecause #43's branch is in a fork.Why
npm 12 makes dependency install scripts opt-in. Bun restricts lifecycle scripts to trusted packages, and Deno requires explicit approval for dependency lifecycle scripts. Consumers can install this package without approving an install script.
Compatibility
CLI downloads on first use, explicit
cloudflared bin install [version], libraryinstall(...), binary path overrides, and #43's version enforcement and optional updates remain intact. Published packages include compiled JavaScript and types.Workflows that relied on install-time setup need these changes:
await install(bin, {})before creating a tunnel or installing a service, or supply an existing executable.Includes a minor-version changeset for these setup requirements.