Skip to content

Commit e7782ef

Browse files
committed
Switch to ipc from env
1 parent 6cb12cb commit e7782ef

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/commands/fix.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

src/commands/optimize.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)