From c5aa86ca12d722d3303e90cbb4e9b1dac11d1c45 Mon Sep 17 00:00:00 2001 From: azu Date: Mon, 3 Jul 2023 13:10:49 +0900 Subject: [PATCH] fix(quick start): exit status align to secretlint command (#557) --- packages/@secretlint/quick-start/bin/quick-start.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@secretlint/quick-start/bin/quick-start.js b/packages/@secretlint/quick-start/bin/quick-start.js index 3e47eff28..c4e7d7a02 100755 --- a/packages/@secretlint/quick-start/bin/quick-start.js +++ b/packages/@secretlint/quick-start/bin/quick-start.js @@ -1,7 +1,7 @@ #!/usr/bin/env node -import { quickStart } from "../module/index.js"; try { + const { quickStart } = await import("../module/index.js"); const { exitStatus, stderr, stdout } = await quickStart(); if (stdout) { console.log(stdout); @@ -12,5 +12,5 @@ try { process.exit(exitStatus); } catch (error) { console.error(error); - process.exit(1); + process.exit(2); // fatal error }