File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ export const fix: CliSubcommand = {
1313 const spinner = new Spinner ( ) . start ( )
1414 try {
1515 await shadowNpmInstall ( {
16- env : {
17- [ SOCKET_CLI_FIX_PACKAGE_LOCK_FILE ] : '1'
16+ ipc : {
17+ [ SOCKET_CLI_FIX_PACKAGE_LOCK_FILE ] : true
1818 }
1919 } )
2020 } catch ( e : any ) {
Original file line number Diff line number Diff line change @@ -919,17 +919,17 @@ export const optimize: CliSubcommand = {
919919 try {
920920 if ( isNpm ) {
921921 await shadowNpmInstall ( {
922- env : {
923- [ SOCKET_CLI_UPDATE_OVERRIDES_IN_PACKAGE_LOCK_FILE ] : '1'
922+ ipc : {
923+ [ SOCKET_CLI_UPDATE_OVERRIDES_IN_PACKAGE_LOCK_FILE ] : true
924924 }
925925 } )
926926 // TODO: This is a temporary workaround for a `npm ci` bug where it
927927 // will error out after Socket Optimize generates a lock file. More
928928 // investigation is needed.
929929 await shadowNpmInstall ( {
930930 flags : [ '--ignore-scripts' , '--package-lock-only' ] ,
931- env : {
932- [ SOCKET_CLI_UPDATE_OVERRIDES_IN_PACKAGE_LOCK_FILE ] : '1'
931+ ipc : {
932+ [ SOCKET_CLI_UPDATE_OVERRIDES_IN_PACKAGE_LOCK_FILE ] : true
933933 }
934934 } )
935935 } else {
You can’t perform that action at this time.
0 commit comments