lzh-common 1.0.0

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,11 @@
1
+ export interface User {
2
+ id: string;
3
+ name: string;
4
+ email: string;
5
+ }
6
+ export interface Product {
7
+ id: string;
8
+ name: string;
9
+ price: number;
10
+ }
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf"}
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "lzh-common",
3
+ "version": "1.0.0",
4
+ "description": "Shared TypeScript interfaces",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc"
9
+ },
10
+ "author": "Your Name",
11
+ "license": "MIT",
12
+ "devDependencies": {
13
+ "typescript": "^5.6.3"
14
+ }
15
+ }
package/src/index.ts ADDED
@@ -0,0 +1,12 @@
1
+ // src/index.ts
2
+ export interface User {
3
+ id: string;
4
+ name: string;
5
+ email: string;
6
+ }
7
+
8
+ export interface Product {
9
+ id: string;
10
+ name: string;
11
+ price: number;
12
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "./dist", // 编译输出目录
4
+ "declaration": true, // 生成 .d.ts 类型定义文件
5
+ "declarationMap": true, // 生成 .d.ts.map 文件
6
+ "module": "ESNext", // ES 模块系统
7
+ "target": "ESNext", // 编译目标
8
+ "strict": true, // 启用严格模式
9
+ "esModuleInterop": true, // 兼容 ES 模块
10
+ "skipLibCheck": true, // 跳过库文件检查
11
+ "forceConsistentCasingInFileNames": true // 文件名大小写一致
12
+ },
13
+ "include": ["src/**/*"], // 需要编译的源文件
14
+ "exclude": ["node_modules"] // 排除目录
15
+ }