Skip to content
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

Split NPM package to two: bundled and installer #273

Merged
merged 2 commits into from
Jun 7, 2022

Conversation

Envek
Copy link
Member

@Envek Envek commented Jun 6, 2022

TLDR: Instead of @arkweid/lefthook that ships pre-bundled binaries for all OS and architectures, there will be two: @evilmartians/lefthook (the same) and @evilmartians/lefthook-installer that will download only needed binary on install (implemented in #188 by @aminya).

A bit of context:

While it is a pain to download megabytes of extra binaries that aren't going to be used at all, installation hooks in NPM packages has some drawbacks also (concerns were raised here and here), including security concerns (and there were a lot of examples last months, unfortunately). Because of this I decided to publish both variants.

@Envek Envek requested review from HellSquirrel, mrexox and skryukov June 6, 2022 15:58
docs/full_guide.md Outdated Show resolved Hide resolved
cmd/templates/hook.tmpl Outdated Show resolved Hide resolved
Copy link
Member

@mrexox mrexox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few typos, but overall I like it 🍰

Co-authored-by: Valentine Kiselev <mrexox@evilmartians.com>
@Envek Envek merged commit 87f84cf into master Jun 7, 2022
@Envek Envek deleted the chore/split-npm-package branch June 7, 2022 14:46
mrexox added a commit that referenced this pull request Jun 9, 2022
* master:
  Account for GOAMD64 suffix in directory names in NPM and GEM packages [ci skip]
  Include version into RPM/DEB packages on release [ci skip]
  0.8.0: Skip hooks in merge/rebase, hide summary, NPM installer package
  Split NPM package to two: bundled and installer (#273)
  Include archived binaries in the releases (#189)
  docs: s/agrs/args (#265) [ci skip]
  chore(lint): Fix golangci-lint complains
  docs(usage): Add commitlint example in full_guide (#201)
  Fix unreachable conditional in hook template (#242)
  fix(hook.tmpl): adds cpu arch and os arch to `lefthook`'s filepath (#260)
  Replace deprecated `File.exists?` with `exist?` for Ruby wrapper (#263)
  Fix typo in docs/full_guide.md (#256)
  0.7.7: Fix arguments passing and various NPM-related fixes
  Fix incorrect npx command in git hook script template (#236)
  Update project URLs in NPM package.json (#235)
  Pass all arguments to downstream hooks (#231)
  Allows lefthook to work when node_modules is not in root folder for npx (#224)
  Do not initialize git config on `help` and `version` commands (#209)
  node: fix postinstall: process.cwd is a function and should be called

Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>
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.

2 participants