From 296002e04f545189912b05ef92dae68085fef33e Mon Sep 17 00:00:00 2001 From: Isaac Date: Mon, 20 Nov 2023 17:12:45 +0000 Subject: [PATCH] fix: `npx` stdin command's child process stderr logging --- src/stdin/npx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stdin/npx.js b/src/stdin/npx.js index 992eebc..3a63bee 100644 --- a/src/stdin/npx.js +++ b/src/stdin/npx.js @@ -13,6 +13,6 @@ module.exports = class extends StdinCommand { if (!input[0]) return this.client.log.warn('Usage: npx [args]'); const child = spawn('npx', input, { shell: true }); for await (const data of child.stdout) this.client.log.info('npx:', data.toString()); - for await (const data of child.stderr) this.client.warn.info('npx:', data.toString()); + for await (const data of child.stderr) this.client.log.warn('npx:', data.toString()); } -}; \ No newline at end of file +};