aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-release/scripts/npm-exec.ts
blob: 5b054ac865489875fdcb2e4a38a76fa75e566015 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { importBun } from "../src/npm/install";
import { execFileSync } from "child_process";

importBun()
  .then((bun) => {
    return execFileSync(bun, process.argv.slice(2), {
      stdio: "inherit",
    });
  })
  .catch((error) => {
    console.error(error);
    process.exit(1);
  });