@longzai-intelligence-scripts/config 0.0.3 → 0.0.6

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 +0 -10
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/types.d.ts
2
1
  /**
3
2
  * 定义 lzi-scripts.config.ts 配置结构与真源注册数据契约
4
3
  *
@@ -164,8 +163,6 @@ type ScriptsConfigResult = {
164
163
  */
165
164
  configPath: string | null;
166
165
  };
167
- //#endregion
168
- //#region src/define.config.d.ts
169
166
  /**
170
167
  * lzi-scripts 配置工厂(恒等返回,仅提供类型约束)
171
168
  *
@@ -173,8 +170,6 @@ type ScriptsConfigResult = {
173
170
  * @returns 原样返回的配置对象
174
171
  */
175
172
  declare const defineConfig: (config?: LziScriptsConfig) => LziScriptsConfig;
176
- //#endregion
177
- //#region src/define.registry.d.ts
178
173
  /**
179
174
  * 脚本档案工厂(恒等返回,仅提供类型约束)
180
175
  *
@@ -203,8 +198,6 @@ declare const defineCompanionEntries: (companions: CompanionEntry[]) => Companio
203
198
  * @returns 原样返回的注册数据
204
199
  */
205
200
  declare const defineRegistry: (data: ScriptsRegistryData) => ScriptsRegistryData;
206
- //#endregion
207
- //#region src/load.config.d.ts
208
201
  /**
209
202
  * 自起点目录逐级上溯查找就地配置文件
210
203
  *
@@ -220,8 +213,6 @@ declare const findScriptsConfigFile: (startDir: string) => string | null;
220
213
  * @throws {@link Error} 配置文件存在但动态加载失败或 default export 形态非法
221
214
  */
222
215
  declare const loadScriptsConfig: (startDir?: string) => Promise<ScriptsConfigResult>;
223
- //#endregion
224
- //#region src/registry-resolution.utils.d.ts
225
216
  /**
226
217
  * 真源命中来源(解析链层级)
227
218
  */
@@ -277,5 +268,4 @@ type ResolveRegistryOptions = {
277
268
  * @returns 解析结果;全链未命中返回 null
278
269
  */
279
270
  declare const resolveRegistry: (options: ResolveRegistryOptions) => Promise<ResolvedRegistry | null>;
280
- //#endregion
281
271
  export { type AlternativeDeclaration, type CompanionEntry, type ExemptionDeclaration, type LegacyMapping, type LziScriptsConfig, type RegistrySource, type ResolveRegistryOptions, type ResolvedRegistry, type ScriptEntry, type ScriptSeverity, type ScriptsConfigResult, type ScriptsProfileKey, type ScriptsRegistryData, asRegistryData, defineCompanionEntries, defineConfig, defineLegacyMappings, defineProfile, defineRegistry, findScriptsConfigFile, loadScriptsConfig, resolveRegistry };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longzai-intelligence-scripts/config",
3
- "version": "0.0.3",
3
+ "version": "0.0.6",
4
4
  "description": "Longzai Intelligence 标准脚本审计配置类型定义与加载器(lzi-scripts.config.ts)",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
@@ -23,8 +23,8 @@
23
23
  "typecheck:app": "lzi-tsgo typecheck tsconfig/app.json",
24
24
  "typecheck:node": "lzi-tsgo typecheck tsconfig/node.json",
25
25
  "typecheck:test": "lzi-tsgo typecheck tsconfig/test.json",
26
- "lint": "oxlint && oxfmt --check",
27
- "lint:fix": "oxlint --fix && oxfmt",
26
+ "lint": "lzi-lint lint",
27
+ "lint:fix": "lzi-lint fix",
28
28
  "test": "bun test --pass-with-no-tests",
29
29
  "test:watch": "bun test --watch",
30
30
  "test:coverage": "bun test --coverage",