Skip to content

Commit 70feb13

Browse files
authored
refactor(onboard): remove obsolete node manager options (#106593)
1 parent 16ef091 commit 70feb13

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

src/commands/onboard-helpers.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { movePathToTrash } from "../infra/fs-safe.js";
4242
import type { RuntimeEnv } from "../runtime.js";
4343
import { resolveConfigDir, shortenHomeInString, shortenHomePath, sleep } from "../utils.js";
4444
import { VERSION } from "../version.js";
45-
import type { NodeManagerChoice, OnboardMode, ResetScope } from "./onboard-types.js";
45+
import type { OnboardMode, ResetScope } from "./onboard-types.js";
4646
export { randomToken } from "./random-token.js";
4747

4848
export { detectBinary };
@@ -247,18 +247,6 @@ export async function ensureWorkspaceAndSessions(
247247
runtime.log(`Sessions OK: ${shortenHomePath(sessionsDir)}`);
248248
}
249249

250-
/** Returns package manager choices offered by onboarding. */
251-
export function resolveNodeManagerOptions(): Array<{
252-
value: NodeManagerChoice;
253-
label: string;
254-
}> {
255-
return [
256-
{ value: "npm", label: "npm" },
257-
{ value: "pnpm", label: "pnpm" },
258-
{ value: "bun", label: "bun" },
259-
];
260-
}
261-
262250
/** Moves a path to Trash when it exists, logging a manual-delete fallback on failure. */
263251
export async function moveToTrash(pathname: string, runtime: RuntimeEnv): Promise<void> {
264252
if (!pathname) {

src/commands/onboard-skills.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ const mocks = vi.hoisted(() => ({
1111
detectBinary: vi.fn(),
1212
isContainerEnvironment: vi.fn(),
1313
resolveBrewExecutable: vi.fn(),
14-
resolveNodeManagerOptions: vi.fn(() => [
15-
{ value: "npm", label: "npm" },
16-
{ value: "pnpm", label: "pnpm" },
17-
{ value: "bun", label: "bun" },
18-
]),
1914
}));
2015

2116
// Module under test imports these at module scope.
@@ -35,7 +30,6 @@ vi.mock("../infra/brew.js", () => ({
3530
}));
3631
vi.mock("./onboard-helpers.js", () => ({
3732
detectBinary: mocks.detectBinary,
38-
resolveNodeManagerOptions: mocks.resolveNodeManagerOptions,
3933
}));
4034

4135
import { setupSkills, testing } from "./onboard-skills.js";

0 commit comments

Comments
 (0)