Skip to content

refactor: replace postinstall with platform-specific npm packages#23

Merged
tawanorg merged 1 commit intomainfrom
refactor/platform-specific-npm-packages
Apr 7, 2026
Merged

refactor: replace postinstall with platform-specific npm packages#23
tawanorg merged 1 commit intomainfrom
refactor/platform-specific-npm-packages

Conversation

@tawanorg
Copy link
Copy Markdown
Owner

@tawanorg tawanorg commented Apr 6, 2026

Summary

  • Eliminates Socket.dev installScripts alert by removing the postinstall hook that downloaded binaries at install time
  • Uses platform-specific optional dependencies (like esbuild/turbo) so npm installs only the matching binary package based on os/cpu
  • Added 6 platform packages: darwin-arm64, darwin-x64, linux-arm64, linux-x64, win32-arm64, win32-x64
  • Updated release workflow to build and publish all platform packages before the main package
  • Added Socket badge to README

Eliminates the Socket.dev installScripts alert by removing the
postinstall hook that downloaded binaries at install time. Instead,
uses platform-specific optional dependencies (like esbuild) that npm
resolves at install time based on os/cpu fields.

Each platform gets its own package (@tawandotorg/claude-sync-{platform})
containing the prebuilt binary. The bin wrapper resolves the binary from
the installed platform package via require.resolve.
@tawanorg tawanorg merged commit 14d4996 into main Apr 7, 2026
2 checks passed
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