Skip to content

Commit 06aaf90

Browse files
committed
chore(pay-gateway): 移除 cjs 构建模式
1 parent cce4537 commit 06aaf90

File tree

4 files changed

+6
-19
lines changed

4 files changed

+6
-19
lines changed

.changeset/great-banks-share.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": minor
3+
---
4+
5+
removed cjs build mode.

node-pkgs/pay-gateway/ltzf/types.d.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -353,14 +353,7 @@ declare global {
353353
export type H5JumpPayInput = Omit<
354354
H5JumpPay,
355355
"mch_id" | "sign" | "developer_appid"
356-
> & {
357-
/** 支付通知地址,可选,不传则使用配置中的默认值 */
358-
notify_url?: string;
359-
/** 回跳地址,可选,不传则使用配置中的默认值 */
360-
return_url?: string;
361-
/** 取消支付跳转地址,可选 */
362-
quit_url?: string;
363-
};
356+
>;
364357
/**
365358
* 公众号支付业务入参类型
366359
*/

node-pkgs/pay-gateway/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"exports": {
1414
".": {
1515
"import": "./dist/index.js",
16-
"require": "./dist/index.cjs",
1716
"types": "./types/index.d.ts"
1817
}
1918
},

node-pkgs/pay-gateway/rolldown.config.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,4 @@ export default defineConfig([
1111
},
1212
external: ["@ethan-utils/axios", "crypto-js"],
1313
},
14-
// CommonJS build
15-
{
16-
input: "./index.ts",
17-
output: {
18-
format: "cjs",
19-
file: "dist/index.cjs",
20-
minify: true,
21-
},
22-
external: ["@ethan-utils/axios", "crypto-js"],
23-
},
2414
]);

0 commit comments

Comments
 (0)