From 257345967e8bccdc4d62bfc866d0ca3c8f1cf4cf Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Mon, 24 Mar 2025 06:37:47 -0400 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20don=E2=80=99t=20force=20exit=20the?= =?UTF-8?q?=20program?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/cli.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cli.mjs b/bin/cli.mjs index df1cbc4e..12b1318c 100755 --- a/bin/cli.mjs +++ b/bin/cli.mjs @@ -136,4 +136,4 @@ if (target && output) { linter.report(reporter); -exit(Number(linter.hasError())); +process.exitCode = Number(linter.hasError()); From 5f7d88cf34547a44352bd42be482ea2892b826bc Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Mon, 24 Mar 2025 06:41:01 -0400 Subject: [PATCH 2/4] fixup! --- bin/cli.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cli.mjs b/bin/cli.mjs index 12b1318c..c689468a 100755 --- a/bin/cli.mjs +++ b/bin/cli.mjs @@ -1,7 +1,7 @@ #!/usr/bin/env node import { resolve } from 'node:path'; -import { argv, exit } from 'node:process'; +import { argv } from 'node:process'; import { Command, Option } from 'commander'; From 13175fead9d0a8fef4e52d1015f22cf74f7b149b Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Mon, 24 Mar 2025 06:42:08 -0400 Subject: [PATCH 3/4] fixup! --- bin/cli.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cli.mjs b/bin/cli.mjs index c689468a..1f28f6d1 100755 --- a/bin/cli.mjs +++ b/bin/cli.mjs @@ -1,7 +1,7 @@ #!/usr/bin/env node import { resolve } from 'node:path'; -import { argv } from 'node:process'; +import process from 'node:process'; import { Command, Option } from 'commander'; From 04d24192e2276727f20f8afce67b0ae8744d0031 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Mon, 24 Mar 2025 06:43:03 -0400 Subject: [PATCH 4/4] =?UTF-8?q?fixup!=20again=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/cli.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cli.mjs b/bin/cli.mjs index 1f28f6d1..827df708 100755 --- a/bin/cli.mjs +++ b/bin/cli.mjs @@ -72,7 +72,7 @@ program .choices(Object.keys(reporters)) .default('console') ) - .parse(argv); + .parse(process.argv); /** * @typedef {keyof generators} Target A list of the available generator names.