vercel

git-hooks

No nonsense Git hook management

by vercel

JavaScript

JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
50
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 4 discussions · Last activity 5y ago
See all on GitHub →
nkzawa

It looks path is hardcoded so that when it's updated and removed by like , scripts stop working. I think it's the same for which the path is hardcoded. Is there are an easy way to update the scripts?

nkzawa · 1y ago
advanced-media

On Windows it's possible to install the package using an admin console (since folders are read-only for normal users). Otherwise symlink creation will fail due to missing permissions (.cjs files -however- are created, so creating and removing symlinks seems to need more permissions, than file creation):\ (install.js:122:5) Result in with proper credentials (admin) will be e.g.: But uninstall is failing on removing symlinks due to different os path separator (baked into symlink string during creation).\ (codepointer) gives ( before #7) Solution could be: adding different path sepatators as character class to RegExp literal or (better readable): using os path separator from module without RegExp btw. trying to include dynamic path separator into RegExp constructor string is a bit cumbersome due to a lack of proper build-in escaping for RegExp...\ Would be nice to see a patch on this soon. And maybe you can mention this troubleshooting (admin console on Windows) in the README. Also, I had to guess where to put the config JSON, would be nice to mention the package.json in the README as well. kind regards.

advanced-media · 5y ago
jaydenseric

With a structure like this: In , using with has no effect. Checking the directory, there are only files in there. Does that mean does not work for monorepo packages?

jaydenseric · 5y ago
rdmurphy

Hello! I saw that a couple new versions were prepared here in the repo to grab the Node +12 compatibility, but I don't think they've made it all the way out to yet. Are there any updates on that effort? Thank you! 🙏

rdmurphy · 5y ago
Qix-

@rauchg @leo can you take a look and let me know if this is okay for Vercel? The package needs to be migrated on npm, too, unless you want to approach this some other way. Also, would you be willing to allow me publishing privs again? 😅

Qix- · 5y ago
rdmurphy

Fixes #6. @Qix- You were correct! Adding to all calls and writes of and didn't bother Node v10 (which just runs them as CommonJS as always), and it successfully makes both Node v12 and Node v14 aware. I was just testing it out by uninstalling and reinstalling then triggering the commit hook in the repo I discovered this in, so might benefit from another person poking on it.

rdmurphy · 5y ago
Structured data for AI agents

Repository: vercel/git-hooks. Description: No nonsense Git hook management Stars: 203, Forks: 9. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: 1.0.0 (5y ago). Open PRs: 0, open issues: 4. Last activity: 5y ago. Community health: 50%. Top contributors: Qix-, rauchg, leerob, rdmurphy.