@longzai-intelligence-dependencies/config 0.0.6 → 0.0.8
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 +33 -3
- 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
|
-
*
|
|
122
|
+
* 依赖升级配置,作用于 `upgrade` 与 `upgrade-across` 命令
|
|
97
123
|
*/
|
|
98
124
|
upgrade?: UpgradeConfig;
|
|
99
125
|
/**
|
|
100
|
-
*
|
|
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 };
|