Skip to content

fix: use npx @socketsecurity/socket-patch for postinstall command#39

Merged
mikolalysenko merged 1 commit intomainfrom
fix/postinstall-npx-command
Mar 11, 2026
Merged

fix: use npx @socketsecurity/socket-patch for postinstall command#39
mikolalysenko merged 1 commit intomainfrom
fix/postinstall-npx-command

Conversation

@mikolalysenko
Copy link
Contributor

Change SOCKET_PATCH_COMMAND from socket patch apply to npx @socketsecurity/socket-patch apply so the postinstall script works without the socket CLI being globally installed.

Changes

  • Updated SOCKET_PATCH_COMMAND constant in detect.rs
  • Updated test assertions to match the new command format
  • Legacy patterns (socket-patch apply, socket patch apply) remain in LEGACY_PATCH_PATTERNS for backward detection

🤖 Generated with Claude Code

Change SOCKET_PATCH_COMMAND from 'socket patch apply' to
'npx @socketsecurity/socket-patch apply' so it works without
the socket CLI being globally installed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mikolalysenko mikolalysenko force-pushed the fix/postinstall-npx-command branch from b35dcc4 to eab2d08 Compare March 11, 2026 01:58
@mikolalysenko mikolalysenko merged commit 90c5fb6 into main Mar 11, 2026
8 of 12 checks passed
@mikolalysenko mikolalysenko deleted the fix/postinstall-npx-command branch March 11, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant