Skip to content

Commit

Permalink
Merge pull request #150 from argos-ci/fix-cjs
Browse files Browse the repository at this point in the history
fix: fix common js finalize & readConfig
  • Loading branch information
gregberge authored Sep 8, 2024
2 parents 682860b + 10f67bc commit e3fcd96
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 e3fcd96

Please sign in to comment.