@longzai-intelligence-bun/config 0.0.12 → 0.0.14

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 +11 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -47,7 +47,7 @@ type BunInstallConfig = {
47
47
  * bun linker 策略,对应 bunfig.toml `[install] linker`
48
48
  *
49
49
  * 开启全局虚拟 store 要求 `isolated`(bun workspaces 默认即 isolated)。
50
- * - `isolated`:每个包独立 node_modules/.bun/<pkg>@<ver> 条目(PNPM 风格),globalStore 才生效
50
+ * - `isolated`:每个包独立 node_modules/.bun/<pkg>@<ver> 条目,globalStore 才生效
51
51
  * - `hoisted`:传统扁平 node_modules,globalStore 无意义
52
52
  *
53
53
  * @default 'isolated'(由 lzi-bun-cli 在 root bunfig 注入)
@@ -256,14 +256,22 @@ type BunConfigResult = {
256
256
  * 注意:此类型与 {@link BunConfigResult} 兼容(即 preset 工厂返回的对象可直接作为此类型使用),
257
257
  * 因为 {@link BunConfigResult} 是 `{ test: BunTestConfig }` 的超集结构。
258
258
  *
259
- * install 段不在此类型暴露:install 配置由 lzi-bun-cli 基于 LZI_SCOPES 共享预设
260
- * 自动注入,不由用户在 lzi-bun.config.ts 声明,保证 scope 单一真源不被局部覆盖。
259
+ * install 段的 registry 与 scopes 不在此类型暴露:由 lzi-bun-cli 基于 LZI_SCOPES 共享预设
260
+ * 自动注入,保证 scope 单一真源不被局部覆盖。但 install 的 globalStore/linker 开关
261
+ * 可在此声明(项目级特异化配置),store 位置由 env 提供(跨机器不同,不入源码)。
261
262
  */
262
263
  type LziBunConfig = {
263
264
  /**
264
265
  * bun test 命令配置
265
266
  */
266
267
  test?: BunTestConfig;
268
+ /**
269
+ * install 段开关配置(仅 globalStore/linker,不含 registry/scopes)
270
+ *
271
+ * registry 与 scopes 由 CLI 基于 LZI_SCOPES 单一真源注入,不在此声明。
272
+ * globalStore 开启后,store 位置由 env 的 BUN_INSTALL_CACHE_DIR 指定。
273
+ */
274
+ install?: Pick<BunInstallConfig, 'globalStore' | 'linker'>;
267
275
  };
268
276
  //#endregion
269
277
  //#region src/core/defaults.constants.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longzai-intelligence-bun/config",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "Longzai Intelligence bun 工具配置类型定义",
5
5
  "license": "UNLICENSED",
6
6
  "files": [