From 2d243b37fb0b2761824a0cefe4481e44a700ad3b Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:34:22 -0500 Subject: [PATCH] chore: pipe `pnpm install` stdout to parent stderr --- scripts/run.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run.js b/scripts/run.js index 43cef82f..115968d5 100644 --- a/scripts/run.js +++ b/scripts/run.js @@ -49,7 +49,7 @@ async function main([command, ...argv]) { const installer = spawn('pnpm', ['install', '--lockfile-dir', __dirname], { cwd: pkgDir, - stdio: 'inherit', + stdio: ['ignore', process.stderr, 'inherit'], env: strictEnv, }) @@ -89,7 +89,7 @@ async function main([command, ...argv]) { console.warn(`> pnpm add -g ${tsxSpecifier}`) await new Promise((resolve, reject) => { const installer = spawn('pnpm', ['install', '-g', tsxSpecifier], { - stdio: 'inherit', + stdio: ['ignore', process.stderr, 'inherit'], env: strictEnv, }) installer.on('close', resolve)