Skip to content

Commit 59e734b

Browse files
committed
Add note to npm optimize usage
1 parent 4431f72 commit 59e734b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/commands/optimize.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@ export const optimize: CliSubcommand = {
302302
await spawn(agentExecPath, ['install'], { stdio: 'pipe' })
303303
}
304304
spinner.stop()
305+
if (isNpm) {
306+
console.log(
307+
`💡 Re-run Socket Optimize whenever ${lockName} changes.\n This can be skipped once npm ships https://github.com/npm/cli/pull/7025.`
308+
)
309+
}
305310
} catch {
306311
spinner.stop()
307312
console.log(`✘ socket ${agent} install: Failed to update ${lockName}`)

0 commit comments

Comments
 (0)