Skip to content
Merged
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
10 changes: 8 additions & 2 deletions src/util/package-managers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type Manager = "npm" | "yarn" | "pnpm";
export type Manager = "npm" | "yarn" | "pnpm" | "bun";
export type CommandType =
| "add"
| "create"
Expand Down Expand Up @@ -49,9 +49,15 @@ const commands: Record<
remove: "pnpm remove",
dev: "-D",
},
bun: {
add: "bun add",
install: "bun install",
remove: "bun remove",
dev: "-d",
},
};

export const MANAGERS: Manager[] = ["npm", "yarn", "pnpm"];
export const MANAGERS: Manager[] = ["npm", "yarn", "pnpm", "bun"];

export function getCommand(
mgr: Manager,
Expand Down
Loading