PR: Add Bun Package Helper (bun-package) - #145
Merged
koralowiec merged 1 commit intoSep 21, 2025
Merged
Conversation
koralowiec
reviewed
Sep 10, 2025
trevordcampbell
force-pushed
the
add-bun-package-helper-features
branch
from
September 10, 2025 16:56
6eadb0d to
3d4c898
Compare
koralowiec
approved these changes
Sep 21, 2025
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.
Summary
bun-package: Installs a single package globally via Bun.npm-packagehelper while following Bun best practices.Motivation
Features Added
src/bun-package/BUN_INSTALL=/usr/localso binaries land in/usr/local/bin.npm:-prefixed names (Bun defaults to npm registry).latestinstalls, skips when package already present.<name>@<version>is present.nameHintassists skip checks when the displayed name differs.bun addto mitigate transient registry 5xx errors.bunfeature);installsAfterreferencesbun.package: string (required)version: string (defaultlatest)nameHint: string (optional)Intended Use
bun-package: Helper-oriented, ideal for downstream features to install a single tool or for precise control (incl. non-npm specs usingnameHint).Usage Examples
Tests
5.5.4(asserts reported version)Note: Existing-package installation testing scenarios for bun-package are deferred for now (difficult to model a preinstalled global package in a clean base image without a published multi-package helper). They can be re-enabled later once a reliable path is available / a future bun-packages multi-package installer feature is available to fill that gap.
Docs
NOTES.mdfor bun-package includes:npm:prefix usagenameHintCompatibility
/usr/local/binfor consistent PATH.Security/Robustness
nanolayerusage keeps layers small where applicable.BUN_INSTALL.bun addto reduce flakiness from transient registry errors.Checklist
devcontainer-feature.json) includes options andinstallsAfter