Hello everyone! I'm testing out Bun as Node.js drop-in replacement in one of my most important projects.
As per title I usually have a package.json scripts.prepare script in order to install git hooks using husky (https://typicode.github.io/husky/getting-started.html#install).
{
"scripts": {
"prepare": "husky install"
}
}
So when building my docker image I usually do something like this before installing only production deps:
RUN npm pkg delete scripts.prepare
Instead the deps installation will fail.
Any bun suggestion / alternative to this step? Thanks!
Originally reported on Discord: Bun "npm pkg delete scripts.prepare" alternative
Hello everyone! I'm testing out Bun as Node.js drop-in replacement in one of my most important projects.
As per title I usually have a
package.jsonscripts.preparescript in order to install git hooks using husky (https://typicode.github.io/husky/getting-started.html#install).So when building my docker image I usually do something like this before installing only production deps:
RUN npm pkg delete scripts.prepareInstead the deps installation will fail.
Any bun suggestion / alternative to this step? Thanks!
Originally reported on Discord:
Bun "npm pkg delete scripts.prepare" alternative