Skip to content

Commit cf6662d

Browse files
authored
types: document configVersion in BunLockFile (#24641)
1 parent 2563a9b commit cf6662d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/bun-types/bun.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6430,6 +6430,16 @@ declare module "bun" {
64306430
/** @see https://bun.com/docs/install/catalogs */
64316431
catalogs?: Record<string, Record<string, string>>;
64326432

6433+
/**
6434+
* `0` / `undefined` for projects created before v1.3.2, `1` for projects created after.
6435+
*
6436+
* ---
6437+
* Right now this only changes the default [install linker strategy](https://bun.com/docs/pm/cli/install#isolated-installs):
6438+
* - With `0`, the linker is hoisted.
6439+
* - With `1`, the linker is isolated for workspaces and hoisted for single-package projects.
6440+
*/
6441+
configVersion?: 0 | 1;
6442+
64336443
/**
64346444
* ```
64356445
* INFO = { prod/dev/optional/peer dependencies, os, cpu, libc (TODO), bin, binDir }

0 commit comments

Comments
 (0)