diff --git a/bin/npm-cli.js b/bin/npm-cli.js index dcb56ec85..5ebd3b2d5 100755 --- a/bin/npm-cli.js +++ b/bin/npm-cli.js @@ -11,7 +11,7 @@ void (async () => { process.exitCode = 1 - const { spawnPromise } = await shadowNpmBin('npm', process.argv.slice(2), { + const { spawnPromise } = await shadowNpmBin(process.argv.slice(2), { stdio: 'inherit', }) diff --git a/bin/npx-cli.js b/bin/npx-cli.js index 4fd74e224..74f861374 100755 --- a/bin/npx-cli.js +++ b/bin/npx-cli.js @@ -7,11 +7,11 @@ void (async () => { const rootPath = path.join(__dirname, '..') Module.enableCompileCache?.(path.join(rootPath, '.cache')) - const shadowNpmBin = require(path.join(rootPath, 'dist/shadow-npm-bin.js')) + const shadowNpxBin = require(path.join(rootPath, 'dist/shadow-npx-bin.js')) process.exitCode = 1 - const { spawnPromise } = await shadowNpmBin('npx', process.argv.slice(2), { + const { spawnPromise } = await shadowNpxBin(process.argv.slice(2), { stdio: 'inherit', })