@longzai-intelligence-dependencies/config 0.0.11 → 0.0.13
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.
- package/dist/index.d.ts +54 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -131,6 +131,51 @@ 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
|
+
};
|
|
134
179
|
/**
|
|
135
180
|
* lzi-dependencies.config.ts 配置根类型
|
|
136
181
|
*/
|
|
@@ -151,6 +196,14 @@ type LziDependenciesConfig = {
|
|
|
151
196
|
* 工作区根清单依赖准入配置,作用于 `check` 命令的准入检查段
|
|
152
197
|
*/
|
|
153
198
|
rootManifest?: RootManifestConfig;
|
|
199
|
+
/**
|
|
200
|
+
* 应用包出口形态检查配置,作用于 `check` 命令的出口形态检查段
|
|
201
|
+
*/
|
|
202
|
+
appExports?: AppExportsConfig;
|
|
203
|
+
/**
|
|
204
|
+
* 分层边界检查配置,作用于 `boundary check` 命令
|
|
205
|
+
*/
|
|
206
|
+
boundary?: BoundaryConfig;
|
|
154
207
|
};
|
|
155
208
|
/**
|
|
156
209
|
* lzi-dependencies 配置工厂(恒等返回,仅提供类型约束)
|
|
@@ -212,4 +265,4 @@ declare const findDependenciesConfigFile: () => string | null;
|
|
|
212
265
|
* @throws {@link Error} 如果配置文件存在但加载失败
|
|
213
266
|
*/
|
|
214
267
|
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 };
|
|
268
|
+
export { type AppExportsConfig, type BoundaryConfig, type DependenciesConfigResult, type DependenciesConfigSource, type HoistingConfig, type LziDependenciesConfig, type OverridesConfig, type RootManifestConfig, type UpgradeConfig, defineConfig, findDependenciesConfigFile, loadDependenciesConfig };
|