Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/cli/install-tool/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import { MiseInstallService, MiseVersionResolver } from '../tools/mise.ts';
import { NixInstallService } from '../tools/nix.ts';
import { NodeInstallService } from '../tools/node/index.ts';
import {
NubInstallService,
RenovateInstallService,
YarnInstallService,
YarnSlimInstallService,
Expand Down Expand Up @@ -171,6 +172,7 @@ async function prepareInstallContainer(): Promise<Container> {
container.bind(INSTALL_TOOL_TOKEN).to(NixInstallService);
container.bind(INSTALL_TOOL_TOKEN).to(NugetInstallService);
container.bind(INSTALL_TOOL_TOKEN).to(NodeInstallService);
container.bind(INSTALL_TOOL_TOKEN).to(NubInstallService);
container.bind(INSTALL_TOOL_TOKEN).to(PaketInstallService);
container.bind(INSTALL_TOOL_TOKEN).to(PhpInstallService);
container.bind(INSTALL_TOOL_TOKEN).to(PixiInstallService);
Expand Down
1 change: 1 addition & 0 deletions src/cli/tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const NoPrepareTools = [
'nix',
'nuget',
'npm',
'nub',
'paket',
'pdm',
'pip-tools',
Expand Down
17 changes: 17 additions & 0 deletions src/cli/tools/node/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ export class RenovateInstallService extends NpmBaseInstallService {
}
}

@injectable()
@injectFromHierarchy()
export class NubInstallService extends NpmBaseInstallService {
override readonly name: string = 'nub';

// The tool is `nub`, but it ships on npm under the scoped package
// `@nubjs/nub` (with per-platform binary optionalDependencies), so the
// install target differs from the tool name.
protected override tool(): string {
return '@nubjs/nub';
}

override async test(): Promise<void> {
await this._spawn(this.name, ['--version']);
}
}

@injectable()
@injectFromHierarchy()
export class YarnInstallService extends NpmBaseInstallService {
Expand Down
Loading