@longzai-intelligence-changelog/config 0.0.2

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.
@@ -0,0 +1,29 @@
1
+ //#region src/types.d.ts
2
+ /**
3
+ * changelog 配置类型
4
+ *
5
+ * lzi-changelog.config.ts 的类型定义。盖章集合由多生态自动发现承载
6
+ * (npm workspace / rust / 鸿蒙 / 仓根),不设显式包清单字段;
7
+ * 配置字段随 lzi-changelog 业务演进在此扩展。
8
+ */
9
+ type LziChangelogConfig = Record<string, never>;
10
+ //#endregion
11
+ //#region src/define.config.d.ts
12
+ /**
13
+ * 定义 lzi-changelog 配置
14
+ *
15
+ * 提供类型推导,用户无需手动 satisfies
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * import { defineConfig } from '@longzai-intelligence-changelog/config';
20
+ *
21
+ * export default defineConfig({});
22
+ * ```;
23
+ *
24
+ * @param config - lzi-changelog 配置对象
25
+ * @returns 原样返回传入的配置对象
26
+ */
27
+ declare const defineConfig: (config: LziChangelogConfig) => LziChangelogConfig;
28
+ //#endregion
29
+ export { type LziChangelogConfig, defineConfig };
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ const e=e=>e;export{e as defineConfig};
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@longzai-intelligence-changelog/config",
3
+ "version": "0.0.2",
4
+ "description": "Longzai Intelligence changelog 配置(lzi-changelog.config.ts 类型定义与 defineConfig 工厂)",
5
+ "license": "UNLICENSED",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "type": "module",
10
+ "main": "./dist/index.js",
11
+ "types": "./dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js"
16
+ }
17
+ },
18
+ "scripts": {
19
+ "build": "lzi-builder",
20
+ "build:prod": "NODE_ENV=production bun run build",
21
+ "prepublishOnly": "bun run build:prod",
22
+ "typecheck": "bun run typecheck:app && bun run typecheck:node && bun run typecheck:test",
23
+ "typecheck:app": "lzi-tsgo typecheck tsconfig/app.json",
24
+ "typecheck:node": "lzi-tsgo typecheck tsconfig/node.json",
25
+ "typecheck:test": "lzi-tsgo typecheck tsconfig/test.json",
26
+ "lint": "oxlint && oxfmt --check",
27
+ "lint:fix": "oxlint --fix && oxfmt",
28
+ "test": "bun test",
29
+ "test:watch": "bun test --watch",
30
+ "test:coverage": "bun test --coverage",
31
+ "clean": "lzi-dev-cli clean"
32
+ }
33
+ }