From 799f5e795ef6c9410865a7d243a7a867aca74046 Mon Sep 17 00:00:00 2001 From: Anurag Roy Date: Sat, 21 Dec 2024 04:15:25 +0530 Subject: [PATCH] feat: detect `bun` as package manager from `bun.lock` file (#38) --- README.md | 2 +- src/constants.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 09a66ac..4b7718f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/constants.ts b/src/constants.ts index 3d9fb81..1ba19bd 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -12,6 +12,7 @@ export const AGENTS: Agent[] = [ // the order here matters, more specific one comes first export const LOCKS: Record = { + 'bun.lock': 'bun', 'bun.lockb': 'bun', 'deno.lock': 'deno', 'pnpm-lock.yaml': 'pnpm',