@@ -104,6 +104,7 @@ import {
104104import { filterPackagesByChanges } from '../utils/git.mjs'
105105import {
106106 copySocketOverride ,
107+ PNPM_REAL_BIN ,
107108 PNPM_HOISTED_INSTALL_FLAGS ,
108109 PNPM_INSTALL_ENV ,
109110} from '../utils/package.mjs'
@@ -524,7 +525,7 @@ async function installPackage(packageInfo) {
524525 // If Socket override has different dependencies, install them.
525526 // Always use pnpm for installation to avoid npm override conflicts.
526527 if ( overridePkgJson . dependencies ) {
527- await runCommandQuietStrict ( 'pnpm' , [ 'install' ] , {
528+ await runCommandQuietStrict ( PNPM_REAL_BIN , [ 'install' ] , {
528529 cwd : installedPath ,
529530 env : {
530531 ...process . env ,
@@ -539,7 +540,7 @@ async function installPackage(packageInfo) {
539540 // The hoisted install at parent level makes test runners available to nested package.
540541 // Always use pnpm for installation to avoid npm override conflicts.
541542 await runCommandQuietStrict (
542- 'pnpm' ,
543+ PNPM_REAL_BIN ,
543544 [ 'install' , ...PNPM_HOISTED_INSTALL_FLAGS ] ,
544545 {
545546 cwd : packageTempDir ,
@@ -778,7 +779,7 @@ async function installPackage(packageInfo) {
778779 await pRetry (
779780 async ( ) => {
780781 await runCommandQuietStrict (
781- 'pnpm' ,
782+ PNPM_REAL_BIN ,
782783 [ 'install' , ...PNPM_HOISTED_INSTALL_FLAGS ] ,
783784 {
784785 cwd : packageTempDir ,
@@ -816,7 +817,7 @@ async function installPackage(packageInfo) {
816817 // Always use pnpm for installation to avoid npm override conflicts.
817818 writeProgress ( '👷' )
818819 await runCommandQuietStrict (
819- 'pnpm' ,
820+ PNPM_REAL_BIN ,
820821 [ 'install' , ...PNPM_HOISTED_INSTALL_FLAGS ] ,
821822 {
822823 cwd : packageTempDir ,
@@ -940,7 +941,7 @@ async function installPackage(packageInfo) {
940941 // If Socket override has different dependencies, install them.
941942 // Always use pnpm for installation to avoid npm override conflicts.
942943 if ( overridePkgJson . dependencies ) {
943- await runCommandQuietStrict ( 'pnpm' , [ 'install' ] , {
944+ await runCommandQuietStrict ( PNPM_REAL_BIN , [ 'install' ] , {
944945 cwd : installedPath ,
945946 env : {
946947 ...process . env ,
@@ -955,7 +956,7 @@ async function installPackage(packageInfo) {
955956 // The hoisted install at parent level makes test runners available to nested package.
956957 // Always use pnpm for installation to avoid npm override conflicts.
957958 await runCommandQuietStrict (
958- 'pnpm' ,
959+ PNPM_REAL_BIN ,
959960 [ 'install' , ...PNPM_HOISTED_INSTALL_FLAGS ] ,
960961 {
961962 cwd : packageTempDir ,
0 commit comments