summaryrefslogtreecommitdiffhomepage
path: root/js/src/bun
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/bun')
-rw-r--r--js/src/bun/index.ts28
1 files changed, 0 insertions, 28 deletions
diff --git a/js/src/bun/index.ts b/js/src/bun/index.ts
deleted file mode 100644
index 35e8cbbf9..000000000
--- a/js/src/bun/index.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import path from "path";
-import { Log } from "../util/log";
-export namespace BunProc {
- const log = Log.create({ service: "bun" });
-
- export function run(
- cmd: string[],
- options?: Bun.SpawnOptions.OptionsObject<any, any, any>,
- ) {
- const root =
- process.argv0 !== "bun"
- ? path.resolve(process.cwd(), process.argv0)
- : process.argv0;
- log.info("running", {
- cmd: [root, ...cmd],
- options,
- });
- const result = Bun.spawnSync([root, ...cmd], {
- ...options,
- argv0: "bun",
- env: {
- ...process.env,
- ...options?.env,
- },
- });
- return result;
- }
-}