Skip to content

Commit

Permalink
feat: detect bun as package manager from bun.lock file (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag-roy authored Dec 20, 2024
1 parent 75bede6 commit 799f5e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Package manager detector is based on lock files and the `packageManager` field in the current project's `package.json` file.

It will detect your `yarn.lock` / `pnpm-lock.yaml` / `package-lock.json` / `bun.lockb` / `deno.lock` to know the current package manager and use the `packageManager` field in your `package.json` if present.
It will detect your `yarn.lock` / `pnpm-lock.yaml` / `package-lock.json` / `bun.lock` / `bun.lockb` / `deno.lock` to know the current package manager and use the `packageManager` field in your `package.json` if present.

## Install

Expand Down
1 change: 1 addition & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const AGENTS: Agent[] = [

// the order here matters, more specific one comes first
export const LOCKS: Record<string, AgentName> = {
'bun.lock': 'bun',
'bun.lockb': 'bun',
'deno.lock': 'deno',
'pnpm-lock.yaml': 'pnpm',
Expand Down

0 comments on commit 799f5e7

Please sign in to comment.