@longzai-intelligence-dependencies/config 0.0.9 → 0.0.11

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 -7
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import "./rolldown-runtime-BqT_7tdF.js";
2
- //#region src/types.d.ts
3
2
  /**
4
3
  * 定义 lzi-dependencies.config.ts 配置文件的结构
5
4
  *
@@ -114,6 +113,24 @@ type OverridesConfig = {
114
113
  */
115
114
  allowlist?: string[];
116
115
  };
116
+ /**
117
+ * 工作区根清单依赖准入配置
118
+ *
119
+ * @remarks
120
+ * 作用于 `lzi-dependencies check` 命令的准入检查段,默认仅允许工具
121
+ * 链 scope 出现在 workspace 根清单,经特别申请豁免的依赖名通过本配
122
+ * 置指定
123
+ */
124
+ type RootManifestConfig = {
125
+ /**
126
+ * 豁免的依赖名清单
127
+ *
128
+ * @remarks
129
+ * 依赖名经特别申请豁免后登记于本清单,命中不计违例,申请原因以
130
+ * 注释形式写在条目旁作为豁免例外的记账载体
131
+ */
132
+ allowlist?: string[];
133
+ };
117
134
  /**
118
135
  * lzi-dependencies.config.ts 配置根类型
119
136
  */
@@ -130,9 +147,11 @@ type LziDependenciesConfig = {
130
147
  * 强制版本字段禁令配置,作用于 `overrides check` 命令
131
148
  */
132
149
  overrides?: OverridesConfig;
150
+ /**
151
+ * 工作区根清单依赖准入配置,作用于 `check` 命令的准入检查段
152
+ */
153
+ rootManifest?: RootManifestConfig;
133
154
  };
134
- //#endregion
135
- //#region src/define.config.d.ts
136
155
  /**
137
156
  * lzi-dependencies 配置工厂(恒等返回,仅提供类型约束)
138
157
  *
@@ -140,8 +159,6 @@ type LziDependenciesConfig = {
140
159
  * @returns 原样返回的配置对象
141
160
  */
142
161
  declare const defineConfig: (config?: LziDependenciesConfig) => LziDependenciesConfig;
143
- //#endregion
144
- //#region src/load.config.d.ts
145
162
  /**
146
163
  * 新配置来源(lzi-dependencies.config.ts 或统一 lzi.config.ts 的 dependencies 字段)
147
164
  */
@@ -195,5 +212,4 @@ declare const findDependenciesConfigFile: () => string | null;
195
212
  * @throws {@link Error} 如果配置文件存在但加载失败
196
213
  */
197
214
  declare const loadDependenciesConfig: (cwd?: string) => Promise<DependenciesConfigResult | null>;
198
- //#endregion
199
- export { type DependenciesConfigResult, type DependenciesConfigSource, type HoistingConfig, type LziDependenciesConfig, type OverridesConfig, type UpgradeConfig, defineConfig, findDependenciesConfigFile, loadDependenciesConfig };
215
+ 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.9",
3
+ "version": "0.0.11",
4
4
  "description": "Longzai Intelligence 依赖工具配置:lzi-dependencies.config.ts 类型定义、defineConfig 工厂与三级配置加载器",
5
5
  "keywords": [
6
6
  "cli",