Repository navigation
build: bundle runtime dependencies and drop them from dependencies - #115
Merged
cabljac merged 1 commit intoOct 17, 2026
Merged
Conversation
cabljac
added this pull request to stack #116
October 14, 2026 14:22
cabljac
force-pushed
the
noninteractive/10-bundle-deps
branch
from
October 14, 2026 23:16
1c4a615 to
57bdf71
Compare
cabljac
force-pushed
the
noninteractive/10-bundle-deps
branch
from
October 15, 2026 01:10
57bdf71 to
be54d3e
Compare
cabljac
marked this pull request as ready for review
October 16, 2026 08:55
bun build inlines @clack/prompts and execa, so dist/index.js imports only Node builtins. Both move to devDependencies and npm install -g venfork installs no other package, which shortens every scheduled sync's install step. smoke:node now fails when the bundle imports a non-builtin, then packs the package, installs the tarball offline with --omit=dev into an empty project, checks that only venfork lands in node_modules, and runs its bin (--version, doctor --json) under Node.
cabljac
force-pushed
the
noninteractive/10-bundle-deps
branch
from
October 17, 2026 17:07
be54d3e to
d82eb22
Compare
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.
bun build --target nodealready inlines @clack/prompts and execa, sodist/index.jsimports only Node builtins. They were stilldependencies, sonpm install -g venfork, which every scheduled sync runs, installed packages the CLI never loads. Both move todevDependencies. bun.lock is aligned by hand, andbun install --frozen-lockfilestill passes.smoke:node, in verify and the release job, now fails when the bundle imports a non-builtin. It then packs the tarball, installs it offline with--omit=devinto an empty project, requiresnode_modulesto hold only venfork, and runs--versionanddoctor --jsonon the fixture. Red-first: with the deps put back, the smoke failed with ENOTCACHED, and a foreign import also failed it. 2 new unit tests covernonBuiltinImports.bun run verifyexits 0. No feature file applies. Count gate: unit 1163 to 1165, integration 410.Not verified: e2e tiers, and the smoke under Node 22 locally (CI runs 22 and 24).
Part of the 0.13.0 non-interactive and portable stack.