Skip to content

Commit 35ba8bd

Browse files
yamitzkyclaude
andcommitted
fix: wrap main logic in async function for bun build --compile
Top-level await is not supported by bun build --compile. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ce113e5 commit 35ba8bd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,7 @@ const rootParser = or(
754754
// Main
755755
// ---------------------------------------------------------------------------
756756

757+
async function main() {
757758
const config = await run(rootParser, {
758759
programName: "sladm",
759760
help: "both",
@@ -1503,3 +1504,6 @@ switch (config.cmd) {
15031504
throw new Error(`Unknown command`);
15041505
}
15051506
}
1507+
}
1508+
1509+
main();

0 commit comments

Comments
 (0)