close
Skip to content

Disable reading .env #5515

Description

@robobun

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

Metadata

Metadata

Assignees

Labels

cliSomething to do with CLI argumentsenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions