Skip to content

Commit

Permalink
Update debug-level to version 3.2.0 and fix runShellCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
Vittorio Palmisano committed Sep 23, 2024
1 parent 895faa4 commit 99aea70
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
6 changes: 5 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand Down

0 comments on commit 99aea70

Please sign in to comment.