Skip to content

Reduce repository size by 69% #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

garysassano
Copy link

@garysassano garysassano commented Jun 2, 2025

This pull request improves the setup-zig action by reducing repository size from 163MB to 50MB (a 69% reduction) and replacing native dependencies with modern JavaScript libraries.

Key Changes

  1. Repository Optimization:

    • Removed node_modules from version control and added it to .gitignore.
    • Bundled dependencies into single files in the dist/ folder using @vercel/ncc.
  2. Cryptography Migration:

    • Replaced sodium-native with @noble/ed25519 for Ed25519 signature verification and @noble/hashes for BLAKE2b hashing.
    • Updated minisign.js to use these libraries while maintaining full compatibility with existing functionality.
    • Uses secure, optimized JavaScript libraries as recommended by the Libsodium creator.

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