@longzai-intelligence-bun/config 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +23 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -43,6 +43,29 @@ type BunInstallConfig = {
43
43
  * 键为含 `@` 前缀的 scope,值为该 scope 的 registry URL。
44
44
  */
45
45
  scopes: BunInstallScopes;
46
+ /**
47
+ * bun linker 策略,对应 bunfig.toml `[install] linker`
48
+ *
49
+ * 开启全局虚拟 store 要求 `isolated`(bun workspaces 默认即 isolated)。
50
+ * - `isolated`:每个包独立 node_modules/.bun/<pkg>@<ver> 条目(PNPM 风格),globalStore 才生效
51
+ * - `hoisted`:传统扁平 node_modules,globalStore 无意义
52
+ *
53
+ * @default 'isolated'(由 lzi-bun-cli 在 root bunfig 注入)
54
+ */
55
+ linker?: 'isolated' | 'hoisted';
56
+ /**
57
+ * 是否开启 bun 全局虚拟 store,对应 bunfig.toml `[install] globalStore`
58
+ *
59
+ * 开启后(install once, link everywhere):所有可安全共享的包条目统一存放在
60
+ * `<BUN_INSTALL_CACHE_DIR>/links/`,各项目 `node_modules/.bun/<pkg>@<ver>` 变为指向它的 symlink,
61
+ * 消除 isolated 布局下 per-project 的重复副本。仅对 `isolated` linker 生效。
62
+ *
63
+ * store 位置(缓存目录)由 `.env` 的 `BUN_INSTALL_CACHE_DIR` 指定(跨机器路径不同,不入源码),
64
+ * 不在 bunfig 物化——bunfig.toml 不支持 `${VAR}` 插值,且写死路径会污染其他机器。
65
+ *
66
+ * @default true(由 lzi-bun-cli 在 root bunfig 注入)
67
+ */
68
+ globalStore?: boolean;
46
69
  };
47
70
  /**
48
71
  * 覆盖率阈值配置
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longzai-intelligence-bun/config",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "Longzai Intelligence bun 工具配置类型定义",
5
5
  "license": "UNLICENSED",
6
6
  "files": [