From f148c230d6b0da1941921dee8040945818c9f6a4 Mon Sep 17 00:00:00 2001 From: Martin Haberfellner Date: Thu, 31 Aug 2023 11:51:37 +0200 Subject: [PATCH] Fix process.exit call regarding the documentation, it expects an integer. the previous implementation didn't work with node@20 anymore --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 7c72c50..a93d7ef 100644 --- a/src/index.js +++ b/src/index.js @@ -98,7 +98,7 @@ function main() { const result = spawn.sync('npm', args, { cwd, stdio: 'inherit' }); - process.exit(result); + process.exit(result.status); } main();