Skip to content

Commit 6037a7f

Browse files
committed
fix(pay-gateway): 把 types.d.ts 类型定义文件加入到构建后的代码中
1 parent bae89df commit 6037a7f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/shaggy-humans-act.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ethan-utils/pay-gateway": patch
3+
---
4+
5+
added types.d.ts file.

node-pkgs/pay-gateway/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"files": [
99
"dist",
1010
"types",
11+
"ltzf/types.d.ts",
12+
"7pay/types.d.ts",
1113
"README.md"
1214
],
1315
"exports": {
@@ -18,7 +20,7 @@
1820
}
1921
},
2022
"scripts": {
21-
"generate-types": "tsc --emitDeclarationOnly --declaration --declarationDir types --project tsconfig.json",
23+
"generate-types": "tsc --emitDeclarationOnly --declaration --declarationDir types --project tsconfig.json && cp -f ltzf/types.d.ts types/ltzf/types.d.ts && cp -f 7pay/types.d.ts types/7pay/types.d.ts",
2224
"build": "rolldown -c rolldown.config.ts && pnpm generate-types"
2325
},
2426
"author": "Ethan Zhang",

0 commit comments

Comments
 (0)