Skip to content

Commit 76ff450

Browse files
committed
fix: add cjs support
1 parent 78239b9 commit 76ff450

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/cli/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ ${c.cyan("npx @solvro/config")}`;
258258

259259
// Run the main function
260260
try {
261-
await main();
261+
// eslint-disable-next-line unicorn/prefer-top-level-await
262+
void main();
262263
} catch (error: unknown) {
263264
console.error("Wystąpił błąd:", error);
264265
process.exit(1);

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default defineConfig([
1111
clean: true,
1212
dts: true,
1313
shims: true,
14-
format: "esm",
14+
format: ["esm", "cjs"],
1515
sourcemap: true,
1616
outDir: "dist",
1717
},

0 commit comments

Comments
 (0)