Skip to content

Commit

Permalink
fix: fix common js finalize & readConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Sep 8, 2024
1 parent 682860b commit 10f67bc
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions packages/core/src/index.cjs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import type { UploadParameters } from "./index";

exports.upload = async (params: UploadParameters) => {
exports.upload = async (...args: any[]) => {
// @ts-ignore
const { upload } = await import("./index.mjs");
return upload(params);
return upload(...args);
};

exports.finalize = async (...args: any[]) => {
// @ts-ignore
const { finalize } = await import("./index.mjs");
return finalize(...args);
};

exports.readConfig = async (...args: any[]) => {
// @ts-ignore
const { readConfig } = await import("./index.mjs");
return readConfig(...args);
};

0 comments on commit 10f67bc

Please sign in to comment.