Fix bin entry for npm publish, v0.1.5

This commit is contained in:
marauder-actual
2026-06-10 18:21:22 +02:00
parent 515249206c
commit 9b2f9bdef2
2 changed files with 24 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env node
import { spawnSync } from "node:child_process";
import { fileURLToPath } from "node:url";
import { resolve, dirname } from "node:path";
const __dirname = dirname(fileURLToPath(import.meta.url));
const cli = resolve(__dirname, "..", "src", "cli.ts");
const result = spawnSync("bun", ["run", cli, ...process.argv.slice(2)], { stdio: "inherit" });
process.exit(result.status ?? 1);