@longzai-intelligence-dependencies/config 0.0.8 → 0.0.10

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 -1
package/dist/index.d.ts CHANGED
@@ -114,6 +114,24 @@ type OverridesConfig = {
114
114
  */
115
115
  allowlist?: string[];
116
116
  };
117
+ /**
118
+ * 工作区根清单依赖准入配置
119
+ *
120
+ * @remarks
121
+ * 作用于 `lzi-dependencies check` 命令的准入检查段,默认仅允许工具
122
+ * 链 scope 出现在 workspace 根清单,经特别申请豁免的依赖名通过本配
123
+ * 置指定
124
+ */
125
+ type RootManifestConfig = {
126
+ /**
127
+ * 豁免的依赖名清单
128
+ *
129
+ * @remarks
130
+ * 依赖名经特别申请豁免后登记于本清单,命中不计违例,申请原因以
131
+ * 注释形式写在条目旁作为豁免例外的记账载体
132
+ */
133
+ allowlist?: string[];
134
+ };
117
135
  /**
118
136
  * lzi-dependencies.config.ts 配置根类型
119
137
  */
@@ -130,6 +148,10 @@ type LziDependenciesConfig = {
130
148
  * 强制版本字段禁令配置,作用于 `overrides check` 命令
131
149
  */
132
150
  overrides?: OverridesConfig;
151
+ /**
152
+ * 工作区根清单依赖准入配置,作用于 `check` 命令的准入检查段
153
+ */
154
+ rootManifest?: RootManifestConfig;
133
155
  };
134
156
  //#endregion
135
157
  //#region src/define.config.d.ts
@@ -196,4 +218,4 @@ declare const findDependenciesConfigFile: () => string | null;
196
218
  */
197
219
  declare const loadDependenciesConfig: (cwd?: string) => Promise<DependenciesConfigResult | null>;
198
220
  //#endregion
199
- export { type DependenciesConfigResult, type DependenciesConfigSource, type HoistingConfig, type LziDependenciesConfig, type OverridesConfig, type UpgradeConfig, defineConfig, findDependenciesConfigFile, loadDependenciesConfig };
221
+ export { type DependenciesConfigResult, type DependenciesConfigSource, type HoistingConfig, 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.8",
3
+ "version": "0.0.10",
4
4
  "description": "Longzai Intelligence 依赖工具配置:lzi-dependencies.config.ts 类型定义、defineConfig 工厂与三级配置加载器",
5
5
  "keywords": [
6
6
  "cli",