feat(tool): add nub package manager#7054
Open
colinhacks wants to merge 1 commit into
Open
Conversation
Add nub (https://nubjs.com) as an npm-distributed tool. Installs @nubjs/nub via the shared NpmBaseInstallService; the tool name (nub) differs from the npm package (@nubjs/nub), so tool() is overridden like YarnInstallService does for berry.
4 tasks
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.
Adds a
nubtool.Nub is a Node package manager published as
@nubjs/nubon npm. This lets Containerbase provision it the same way it provisions the other Node package managers, so a runtime using the defaultbinarySource=installcan install nub to run lockfile updates.Implementation
NubInstallServiceextendsNpmBaseInstallServiceand overridestool()to return@nubjs/nub— the tool name (nub) differs from the npm package, the same shape asYarnInstallServicereturning@yarnpkg/cli-distfor Yarn berry. It installs vianpm install @nubjs/nub@<version>and is added toNoPrepareTools.Scripts run on install (no
--ignore-scripts):@nubjs/nub'spostinstallselects and places the per-platform binary from its@nubjs/nub-<platform>optional dependencies (glibc and musl variants for linux-x64 and linux-arm64), so the tool is usable after install.Context
A companion Renovate manager PR (
nubpackage-manager manager) depends on this tool for its defaultbinarySource=installruntime; it references this PR.AI assistance disclosure
This change was written with substantive assistance from an AI coding agent (Claude).