From 7f0e9b267ee2c26d57721f910bfc57c43bbbdf4e Mon Sep 17 00:00:00 2001 From: Simon Sawicki Date: Thu, 25 Sep 2025 17:31:13 +0200 Subject: [PATCH] Support non-global `process` --- run.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.ts b/run.ts index 163bfbb..6582148 100644 --- a/run.ts +++ b/run.ts @@ -1,14 +1,14 @@ -import { exit } from "node:process"; +import { argv, exit } from "node:process"; import { readFileSync } from "node:fs"; import { isOneOf } from "./src/utils.ts"; import main from "./src/main.ts"; -const args = process.argv.slice(2); +const args = argv.slice(2); if (args.length < 2) { console.error( `ERROR: Missing argument\nusage: ${ - process.argv[1] + argv[1] } [: ...]`, ); exit(1);