From 99aea70c59b9c5c32629fde333a27d881e4780c7 Mon Sep 17 00:00:00 2001 From: Vittorio Palmisano Date: Mon, 23 Sep 2024 13:37:25 +0200 Subject: [PATCH] Update debug-level to version 3.2.0 and fix runShellCommand --- package.json | 2 +- src/utils.ts | 6 +++++- yarn.lock | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index fdaa94f..7502865 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "convict": "^6.2.4", "convict-format-with-validator": "^6.2.0", "change-case": "^4.1.2", - "debug-level": "^3.1.4", + "debug-level": "^3.2.0", "json5": "^2.2.3", "word-wrap": "^1.2.5" }, diff --git a/src/utils.ts b/src/utils.ts index 7a92233..6502184 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -104,7 +104,11 @@ export async function runShellCommand( ): Promise<{ stdout: string; stderr: string }> { if (verbose) log.debug(`runShellCommand cmd: ${cmd}`) return new Promise((resolve, reject) => { - const p = spawn(cmd, { shell: true, stdio: ['ignore', 'pipe', 'pipe'] }) + const p = spawn(cmd, { + shell: true, + stdio: ['ignore', 'pipe', 'pipe'], + detached: true, + }) let stdout = '' let stderr = '' p.stdout.on('data', data => { diff --git a/yarn.lock b/yarn.lock index dd52052..63366dd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1355,7 +1355,7 @@ data-view-byte-offset@^1.0.0: es-errors "^1.3.0" is-data-view "^1.0.1" -debug-level@^3.1.4: +debug-level@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/debug-level/-/debug-level-3.2.0.tgz#d3aab0a7d2ae0d0d4a2c58c70c9fcbba2f50e660" integrity sha512-7igLR7ulLSZI+3jb3458TnAOqH/X+hT5W3umrpAMGu4c4zZeEp46BDDk0HaGMz3QMqLjsxr1mbA8wNj0KQExAw==