feat(manager): add nub package manager#44422
Open
colinhacks wants to merge 2 commits into
Open
Conversation
Add a first-party manager for nub (https://nubjs.com), modeled on the bun manager. Detects nub.lock, extracts deps via the shared npm extractor (nub.lock is pnpm-lock v9 under nub's own filename), and regenerates the lockfile with 'nub install --lockfile-only'. Registers nub as a Containerbase tool (npm datasource, @nubjs/nub) so binarySource=install can provision it.
- pass --no-frozen-lockfile so nub re-resolves the bumped manifest
instead of rejecting the drift under its CI-frozen default
- detect the object form `workspaces: { packages: [...] }`
- add nub to ignoreScripts supportedManagers
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.
Changes
Adds a
nubpackage-manager manager.Nub is a Node package manager published as
@nubjs/nubon npm. It has its own lockfile,nub.lock, which is byte-compatible with the pnpm-lock v9 format. This manager gives nub-based projects lockfile-aware update PRs without keeping a foreign lockfile.The manager is modeled on the existing
bunmanager:nub.lock, resolves the siblingpackage.json, and extracts dependencies through the shared npm extractor (extractPackageJson). The datasource staysnpm.updateArtifactsby runningnub install --lockfile-only(with--ignore-scriptsunless scripts are allowed), then diffs the old and newnub.lock.supersedesManagers: ['npm']so nub takes over from the npm manager only whennub.lockis present.toolDefinitions+allToolConfig.nub→ npm@nubjs/nub), so the defaultbinarySource=installruntime can provision it. This depends on the companion Containerbase tool: feat(tool): add nub package manager containerbase/base#7054.Context
Please select one of the following:
AI assistance disclosure
Code, tests, and the manager readme were written with substantive assistance from an AI coding agent (Claude).
Documentation (please check one with an [x])
Adds
lib/modules/manager/nub/readme.md, which is auto-rendered into the docs site.How I've tested my work (please select one)
pnpm vitest run lib/modules/manager/nub --coveragepasses with 100% statement/branch/function/line coverage. The manager, metadata, and fingerprint validators, thelib/util/execandlib/configspecs, andpnpm test-schemaall pass.