@longzai-intelligence-dependencies/config 0.0.7 → 0.0.9

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 +33 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -88,18 +88,48 @@ type HoistingConfig = {
88
88
  */
89
89
  allowlist?: string[];
90
90
  };
91
+ /**
92
+ * 强制版本字段禁令配置
93
+ *
94
+ * @remarks
95
+ * 作用于 `lzi-dependencies overrides check` 命令,默认扫描全部清单并
96
+ * 禁止 `overrides` 族强制版本字段,需要排除的子树与经特别申请豁免的
97
+ * 条目通过本配置指定
98
+ */
99
+ type OverridesConfig = {
100
+ /**
101
+ * 额外忽略的路径 glob,相对仓库根
102
+ *
103
+ * @remarks
104
+ * 合并到默认忽略列表 node_modules、oh_modules、target、dist、build、.turbo,
105
+ * 用于排除不参与禁令检查的子树,如 vendored 子项目、模板应用等
106
+ */
107
+ ignorePaths?: string[];
108
+ /**
109
+ * 豁免的强制条目名清单
110
+ *
111
+ * @remarks
112
+ * `overrides` 族字段中的条目名经特别申请豁免后登记于本清单,命中不
113
+ * 计违例,申请原因以注释形式写在条目旁作为豁免例外的记账载体
114
+ */
115
+ allowlist?: string[];
116
+ };
91
117
  /**
92
118
  * lzi-dependencies.config.ts 配置根类型
93
119
  */
94
120
  type LziDependenciesConfig = {
95
121
  /**
96
- * 依赖升级配置(upgrade / upgrade-across)
122
+ * 依赖升级配置,作用于 `upgrade` 与 `upgrade-across` 命令
97
123
  */
98
124
  upgrade?: UpgradeConfig;
99
125
  /**
100
- * 依赖归位配置(hoisting check)
126
+ * 依赖归位配置,作用于 `hoisting check` 命令
101
127
  */
102
128
  hoisting?: HoistingConfig;
129
+ /**
130
+ * 强制版本字段禁令配置,作用于 `overrides check` 命令
131
+ */
132
+ overrides?: OverridesConfig;
103
133
  };
104
134
  //#endregion
105
135
  //#region src/define.config.d.ts
@@ -166,4 +196,4 @@ declare const findDependenciesConfigFile: () => string | null;
166
196
  */
167
197
  declare const loadDependenciesConfig: (cwd?: string) => Promise<DependenciesConfigResult | null>;
168
198
  //#endregion
169
- export { type DependenciesConfigResult, type DependenciesConfigSource, type HoistingConfig, type LziDependenciesConfig, type UpgradeConfig, defineConfig, findDependenciesConfigFile, loadDependenciesConfig };
199
+ export { type DependenciesConfigResult, type DependenciesConfigSource, type HoistingConfig, type LziDependenciesConfig, type OverridesConfig, 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.7",
3
+ "version": "0.0.9",
4
4
  "description": "Longzai Intelligence 依赖工具配置:lzi-dependencies.config.ts 类型定义、defineConfig 工厂与三级配置加载器",
5
5
  "keywords": [
6
6
  "cli",