mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-09 20:29:10 +00:00
26 lines
670 B
TypeScript
26 lines
670 B
TypeScript
|
import { checkAndInstallLune, EXE_EXTENSION } from "../install.ts";
|
||
|
|
||
|
// Install lune, if unavailable
|
||
|
await checkAndInstallLune();
|
||
|
|
||
|
// Wrap around the lune executable
|
||
|
/*
|
||
|
dnt does not support Deno.Command yet, but once they do, this would
|
||
|
like so:
|
||
|
|
||
|
new Deno.Command(Deno.cwd() + "/lune" + EXE_EXTENSION, {
|
||
|
args: Deno.args,
|
||
|
stdout: "inherit",
|
||
|
stderr: "inherit",
|
||
|
stdin: "inherit",
|
||
|
}).spawn();
|
||
|
*/
|
||
|
// deno-lint-ignore no-deprecated-deno-api
|
||
|
const luneStatus = await Deno.run({
|
||
|
cmd: [Deno.cwd() + "/lune" + EXE_EXTENSION, ...Deno.args],
|
||
|
stdout: "inherit",
|
||
|
stderr: "inherit",
|
||
|
stdin: "inherit"
|
||
|
}).status()
|
||
|
|
||
|
Deno.exit(luneStatus.signal)
|