Fix bin entry for npm publish, v0.1.5
This commit is contained in:
Executable
+9
@@ -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);
|
||||
Reference in New Issue
Block a user