From a5c9cd33d9ad45e31004e924f7985b378946cdc7 Mon Sep 17 00:00:00 2001 From: Bill Li Date: Thu, 18 Dec 2025 17:17:20 +0000 Subject: [PATCH] fix(socket-npm): fixing a bug on how the cli bin is passed to the wrapper --- bin/npm-cli.js | 2 +- bin/npx-cli.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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', })