@longzai-intelligence-dependencies/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 +76 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -131,6 +131,69 @@ type RootManifestConfig = {
131
131
  */
132
132
  allowlist?: string[];
133
133
  };
134
+ /**
135
+ * 应用包出口形态检查配置
136
+ *
137
+ * @remarks
138
+ * 作用于 `lzi-dependencies check` 命令的出口形态检查段,apps 层成员包
139
+ * 的 exports 只允许无或单一根出口,经特别申请豁免的包名通过本配置指定
140
+ */
141
+ type AppExportsConfig = {
142
+ /**
143
+ * 豁免的包名清单
144
+ *
145
+ * @remarks
146
+ * apps 层应用包经特别申请豁免后登记于本清单,命中不计违例,申请原因
147
+ * 以注释形式写在条目旁作为豁免例外的记账载体
148
+ */
149
+ allowlist?: string[];
150
+ };
151
+ /**
152
+ * 分层边界检查配置
153
+ *
154
+ * @remarks
155
+ * 作用于 `lzi-dependencies boundary check` 命令,依赖方向段判定
156
+ * packages 层包不得依赖 domains 层领域契约包,目录形态段判定领域目
157
+ * 录层名限于合规集合,需要排除的子树与经特别申请豁免的条目通过本配
158
+ * 置指定
159
+ */
160
+ type BoundaryConfig = {
161
+ /**
162
+ * 额外忽略的路径 glob,相对仓库根
163
+ *
164
+ * @remarks
165
+ * 合并到默认忽略列表 node_modules、oh_modules、target、dist、build、.turbo,
166
+ * 用于排除不参与边界检查的子树
167
+ */
168
+ ignorePaths?: string[];
169
+ /**
170
+ * 豁免条目清单
171
+ *
172
+ * @remarks
173
+ * 依赖方向段登记依赖包名,目录形态段登记 域名/层名 形态条目,经特
174
+ * 别申请豁免后命中不计违例,申请原因以注释形式写在条目旁作为豁免
175
+ * 例外的记账载体
176
+ */
177
+ allowlist?: string[];
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
+ };
134
197
  /**
135
198
  * lzi-dependencies.config.ts 配置根类型
136
199
  */
@@ -151,6 +214,18 @@ type LziDependenciesConfig = {
151
214
  * 工作区根清单依赖准入配置,作用于 `check` 命令的准入检查段
152
215
  */
153
216
  rootManifest?: RootManifestConfig;
217
+ /**
218
+ * 应用包出口形态检查配置,作用于 `check` 命令的出口形态检查段
219
+ */
220
+ appExports?: AppExportsConfig;
221
+ /**
222
+ * 分层边界检查配置,作用于 `boundary check` 命令
223
+ */
224
+ boundary?: BoundaryConfig;
225
+ /**
226
+ * 同 scope 版本锁步检查配置,作用于 `check` 命令的锁步检查段
227
+ */
228
+ lockstep?: LockstepConfig;
154
229
  };
155
230
  /**
156
231
  * lzi-dependencies 配置工厂(恒等返回,仅提供类型约束)
@@ -212,4 +287,4 @@ declare const findDependenciesConfigFile: () => string | null;
212
287
  * @throws {@link Error} 如果配置文件存在但加载失败
213
288
  */
214
289
  declare const loadDependenciesConfig: (cwd?: string) => Promise<DependenciesConfigResult | null>;
215
- export { 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.12",
3
+ "version": "0.0.14",
4
4
  "description": "Longzai Intelligence 依赖工具配置:lzi-dependencies.config.ts 类型定义、defineConfig 工厂与三级配置加载器",
5
5
  "keywords": [
6
6
  "cli",