Skip to content

Commit a5c9cd3

Browse files
committed
fix(socket-npm): fixing a bug on how the cli bin is passed to the wrapper
1 parent b40531e commit a5c9cd3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/npm-cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void (async () => {
1111

1212
process.exitCode = 1
1313

14-
const { spawnPromise } = await shadowNpmBin('npm', process.argv.slice(2), {
14+
const { spawnPromise } = await shadowNpmBin(process.argv.slice(2), {
1515
stdio: 'inherit',
1616
})
1717

bin/npx-cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ void (async () => {
77
const rootPath = path.join(__dirname, '..')
88
Module.enableCompileCache?.(path.join(rootPath, '.cache'))
99

10-
const shadowNpmBin = require(path.join(rootPath, 'dist/shadow-npm-bin.js'))
10+
const shadowNpxBin = require(path.join(rootPath, 'dist/shadow-npx-bin.js'))
1111

1212
process.exitCode = 1
1313

14-
const { spawnPromise } = await shadowNpmBin('npx', process.argv.slice(2), {
14+
const { spawnPromise } = await shadowNpxBin(process.argv.slice(2), {
1515
stdio: 'inherit',
1616
})
1717

0 commit comments

Comments
 (0)