@longzai-intelligence-records/config 0.0.7 → 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 +1 -9
- package/package.json +2 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import "./rolldown-runtime-BqT_7tdF.js";
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
//#region src/schema/lzi-records-config.schema.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* scope key 合法形态(kebab-case)
|
|
6
5
|
*/
|
|
@@ -80,15 +79,13 @@ declare function parseLziRecordsConfig(input: unknown): LziRecordsConfig;
|
|
|
80
79
|
/**
|
|
81
80
|
* 定义 lzi-records 配置(identity 工厂)
|
|
82
81
|
*
|
|
83
|
-
* 类型透传,与 lzi-dev.config.ts / oxfmt.config.ts 等 workspace 配置惯例同构:
|
|
82
|
+
* 类型透传,与 lzi-dev-tools.config.ts / oxfmt.config.ts 等 workspace 配置惯例同构:
|
|
84
83
|
* 不在工厂层做任何合并——默认值由本模块 schema 解析层统一落定。
|
|
85
84
|
*
|
|
86
85
|
* @param config - 配置对象,可整体省略,零参形态由解析层落定全部缺省
|
|
87
86
|
* @returns 原样返回传入的配置对象
|
|
88
87
|
*/
|
|
89
88
|
declare function defineConfig(config?: LziRecordsConfigInput): LziRecordsConfigInput;
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region src/loader/load-records-config.utils.d.ts
|
|
92
89
|
/**
|
|
93
90
|
* 配置来源类型
|
|
94
91
|
*/
|
|
@@ -160,8 +157,6 @@ declare function loadLziRecordsConfig(options?: LoadLziRecordsConfigOptions): Pr
|
|
|
160
157
|
* @throws {@link Error} 导入失败或无 default 导出
|
|
161
158
|
*/
|
|
162
159
|
declare function importConfigModule(configPath: string): Promise<unknown>;
|
|
163
|
-
//#endregion
|
|
164
|
-
//#region src/scaffold/render-scaffold.renderer.d.ts
|
|
165
160
|
/**
|
|
166
161
|
* lzi-records 配置脚手架渲染(init 命令落盘)
|
|
167
162
|
*
|
|
@@ -191,8 +186,6 @@ type ConfigScaffoldInput = {
|
|
|
191
186
|
* @returns 可直接落盘的配置文件全文
|
|
192
187
|
*/
|
|
193
188
|
declare function renderConfigScaffold(input: ConfigScaffoldInput): string;
|
|
194
|
-
//#endregion
|
|
195
|
-
//#region src/validation/validate-cross-entries.d.ts
|
|
196
189
|
/**
|
|
197
190
|
* 校验并透传配置(语义非法即抛,消息聚合全部违规项)
|
|
198
191
|
*
|
|
@@ -201,5 +194,4 @@ declare function renderConfigScaffold(input: ConfigScaffoldInput): string;
|
|
|
201
194
|
* @throws {@link Error} 跨条目语义违规
|
|
202
195
|
*/
|
|
203
196
|
declare function validateLziRecordsConfig(config: LziRecordsConfig): LziRecordsConfig;
|
|
204
|
-
//#endregion
|
|
205
197
|
export { ConfigScaffoldInput, DEFAULT_REGISTRY_DIR, LintBaselineEntry, LoadLziRecordsConfigFailure, LoadLziRecordsConfigOptions, LoadLziRecordsConfigResult, LoadLziRecordsConfigSuccess, LziRecordsConfig, LziRecordsConfigInput, LziRecordsConfigSource, SCOPE_KEY_PATTERN, ScopeEntry, ScopeEntryInput, baselineEntrySchema, defineConfig, importConfigModule, loadLziRecordsConfig, lziRecordsConfigSchema, parseLziRecordsConfig, renderConfigScaffold, validateLziRecordsConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longzai-intelligence-records/config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Longzai Intelligence Records 配置",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -25,10 +25,7 @@
|
|
|
25
25
|
"build": "lzi-builder",
|
|
26
26
|
"build:prod": "NODE_ENV=production bun run build",
|
|
27
27
|
"prepublishOnly": "bun run build:prod",
|
|
28
|
-
"typecheck": "
|
|
29
|
-
"typecheck:app": "lzi-tsgo typecheck tsconfig/app.json",
|
|
30
|
-
"typecheck:node": "lzi-tsgo typecheck tsconfig/node.json",
|
|
31
|
-
"typecheck:test": "lzi-tsgo typecheck tsconfig/test.json",
|
|
28
|
+
"typecheck": "lzi-typecheck",
|
|
32
29
|
"lint": "lzi-lint lint",
|
|
33
30
|
"lint:fix": "lzi-lint fix",
|
|
34
31
|
"test": "bun test",
|
|
@@ -38,8 +35,5 @@
|
|
|
38
35
|
"dependencies": {
|
|
39
36
|
"@longzai-intelligence-shared-config/core": "^0.0.5",
|
|
40
37
|
"zod": "^4.4.3"
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@types/bun": "latest"
|
|
44
38
|
}
|
|
45
39
|
}
|