evilmartians / lefthook

Fast and powerful Git hooks manager for any type of projects.
MIT License
4.93k stars 215 forks source link

chore(`npm`): use `bin.sh` for execute #798

Closed dalisoft closed 3 months ago

dalisoft commented 3 months ago

Related issues and PR: #688, #703, #705, #776

And #794, #796

:zap: Summary

Reduce execution startup time

This should solve few issues related to bun and it has a bunx/npx support compared to https://github.com/evilmartians/lefthook/pull/705 This script, bin.sh executes only as later it will be replaced to actual binary file This approach does not work on pnpm and does not reduce startup time. For npx it is faster but not much, for bunx it is marginally faster

:ballot_box_with_check: Checklist

dalisoft commented 3 months ago

@mrexox I was not able to test locally, but really ready to test if you provide any way to test locally for bunx/npx or other failing case