From cf6662d48ff288feb35c90f98d6d0716e17a3ad7 Mon Sep 17 00:00:00 2001 From: Michael H Date: Thu, 13 Nov 2025 05:47:30 +1100 Subject: [PATCH] types: document configVersion in BunLockFile (#24641) --- packages/bun-types/bun.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/bun-types/bun.d.ts b/packages/bun-types/bun.d.ts index 6d66e097c5..c4daec79ac 100644 --- a/packages/bun-types/bun.d.ts +++ b/packages/bun-types/bun.d.ts @@ -6430,6 +6430,16 @@ declare module "bun" { /** @see https://bun.com/docs/install/catalogs */ catalogs?: Record>; + /** + * `0` / `undefined` for projects created before v1.3.2, `1` for projects created after. + * + * --- + * Right now this only changes the default [install linker strategy](https://bun.com/docs/pm/cli/install#isolated-installs): + * - With `0`, the linker is hoisted. + * - With `1`, the linker is isolated for workspaces and hoisted for single-package projects. + */ + configVersion?: 0 | 1; + /** * ``` * INFO = { prod/dev/optional/peer dependencies, os, cpu, libc (TODO), bin, binDir }