@longzai-intelligence-dependencies/config 0.0.13 → 0.0.15

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 -1
  2. package/package.json +1 -5
package/dist/index.d.ts CHANGED
@@ -176,6 +176,24 @@ type BoundaryConfig = {
176
176
  */
177
177
  allowlist?: string[];
178
178
  };
179
+ /**
180
+ * 同 scope 版本锁步检查配置
181
+ *
182
+ * @remarks
183
+ * 作用于 `lzi-dependencies check` 命令的锁步检查段,判定清单内同
184
+ * scope 内部分包的依赖声明取值必须完全一致,经特别申请豁免的 scope
185
+ * 通过本配置指定
186
+ */
187
+ type LockstepConfig = {
188
+ /**
189
+ * 豁免的内部包 scope 清单
190
+ *
191
+ * @remarks
192
+ * scope 经特别申请豁免后登记于本清单,命中不计违例,申请原因以
193
+ * 注释形式写在条目旁作为豁免例外的记账载体
194
+ */
195
+ allowlist?: string[];
196
+ };
179
197
  /**
180
198
  * lzi-dependencies.config.ts 配置根类型
181
199
  */
@@ -204,6 +222,10 @@ type LziDependenciesConfig = {
204
222
  * 分层边界检查配置,作用于 `boundary check` 命令
205
223
  */
206
224
  boundary?: BoundaryConfig;
225
+ /**
226
+ * 同 scope 版本锁步检查配置,作用于 `check` 命令的锁步检查段
227
+ */
228
+ lockstep?: LockstepConfig;
207
229
  };
208
230
  /**
209
231
  * lzi-dependencies 配置工厂(恒等返回,仅提供类型约束)
@@ -265,4 +287,4 @@ declare const findDependenciesConfigFile: () => string | null;
265
287
  * @throws {@link Error} 如果配置文件存在但加载失败
266
288
  */
267
289
  declare const loadDependenciesConfig: (cwd?: string) => Promise<DependenciesConfigResult | null>;
268
- export { type AppExportsConfig, type BoundaryConfig, type DependenciesConfigResult, type DependenciesConfigSource, type HoistingConfig, type LziDependenciesConfig, type OverridesConfig, type RootManifestConfig, type UpgradeConfig, defineConfig, findDependenciesConfigFile, loadDependenciesConfig };
290
+ export { type AppExportsConfig, type BoundaryConfig, type DependenciesConfigResult, type DependenciesConfigSource, type HoistingConfig, type LockstepConfig, type LziDependenciesConfig, type OverridesConfig, type RootManifestConfig, type UpgradeConfig, defineConfig, findDependenciesConfigFile, loadDependenciesConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longzai-intelligence-dependencies/config",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "Longzai Intelligence 依赖工具配置:lzi-dependencies.config.ts 类型定义、defineConfig 工厂与三级配置加载器",
5
5
  "keywords": [
6
6
  "cli",
@@ -38,9 +38,5 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@longzai-intelligence-shared-config/core": "^0.0.7"
41
- },
42
- "devDependencies": {
43
- "@types/bun": "^1.4.0",
44
- "@types/node": "^26.2.0"
45
41
  }
46
42
  }