You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Opening a regular issue since the Discussions tab does not seem to be setup for this repo.
First of all, thanks for working on this project. Stumbled on this repo a few weeks ago, and it likely will be a staple for my bun projects going forward.
Now for the actual question.
I see you guys provide a postinstall script that (I think?) does the equivalent of running bun git-hooks to setup the hooks.
But that seems to only be relevant for development environment, since that file isn't included in the published package bundle.
I tried creating my own postinstall script to run bun git-hooks "manually" on my repo, but I stumbled on another issue that the script is run on production environment as well (where bun-git-hooks isn't installed), which fails.
My currrent solution (which I haven't tested yet, but I think will work fine) is to update this postinstall on my repo to check NODE_ENV before running bun git-hooks. But that feels a bit hacky, so I'm wondering if you guys have any other standard ways of doing this.
(Not super relevant, but here's my repo config for reference just in case.)
Thanks again for working on this, looking great!
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Opening a regular issue since the Discussions tab does not seem to be setup for this repo.
First of all, thanks for working on this project. Stumbled on this repo a few weeks ago, and it likely will be a staple for my bun projects going forward.
Now for the actual question.
I see you guys provide a
postinstall
script that (I think?) does the equivalent of runningbun git-hooks
to setup the hooks.But that seems to only be relevant for development environment, since that file isn't included in the published package bundle.
I tried creating my own
postinstall
script to runbun git-hooks
"manually" on my repo, but I stumbled on another issue that the script is run on production environment as well (wherebun-git-hooks
isn't installed), which fails.My currrent solution (which I haven't tested yet, but I think will work fine) is to update this
postinstall
on my repo to checkNODE_ENV
before runningbun git-hooks
. But that feels a bit hacky, so I'm wondering if you guys have any other standard ways of doing this.(Not super relevant, but here's my repo config for reference just in case.)
Thanks again for working on this, looking great!
The text was updated successfully, but these errors were encountered: