Skip to content

Commit c85c429

Browse files
committed
refactor(pip): replace npx with pnpm dlx for external tool execution
Replace npx with pnpm dlx when executing Socket Firewall (sfw) tool to maintain consistency with pnpm-based toolchain. pnpm dlx provides the same functionality as npx but stays within the pnpm ecosystem.
1 parent 8250ab7 commit c85c429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/src/commands/pip/cmd-pip.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ async function run(
105105
const resolution = resolveSfw()
106106

107107
// Forward arguments to sfw (Socket Firewall).
108-
// Use local sfw if available, otherwise use npx.
108+
// Use local sfw if available, otherwise use pnpm dlx.
109109
const result =
110110
resolution.type === 'local'
111111
? await spawn('node', [resolution.path, 'pip', ...argsToForward], {
112112
shell: WIN32,
113113
stdio: 'inherit',
114114
})
115-
: await spawn('npx', ['sfw', 'pip', ...argsToForward], {
115+
: await spawn('pnpm', ['dlx', 'sfw', 'pip', ...argsToForward], {
116116
shell: WIN32,
117117
stdio: 'inherit',
118118
})

0 commit comments

Comments
 (0)