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

Support omit-lockfile-registry-resolved from NPM configuration #15448

Open
tinovyatkin opened this issue Nov 27, 2024 · 0 comments
Open

Support omit-lockfile-registry-resolved from NPM configuration #15448

tinovyatkin opened this issue Nov 27, 2024 · 0 comments
Labels
bun install Something that relates to the npm-compatible client enhancement New feature or request

Comments

@tinovyatkin
Copy link

What is the problem this feature would solve?

Our team uses a private NPM repository proxy with a dynamically generated URL that varies across developer machines and CI environments. Currently, including the full registry URL in the lockfile makes it unsuitable for sharing through a Git repository. NPM addresses this issue with the omit-lockfile-registry-resolved option, which works perfectly in our case by excluding registry-specific URLs from the lockfile.

What is the feature you are proposing to solve the problem?

We propose that bun supports the omit-lockfile-registry-resolved option and allows it to be imported from .npmrc. This enhancement would align Bun with NPM’s functionality and improve its usability in environments like ours, where lockfile portability is essential.

What alternatives have you considered?

We are currently exploring the option of disabling the lockfile entirely through bunfig.toml. However, this approach negatively impacts the reproducibility of our builds, making it less than ideal for our use case.

@tinovyatkin tinovyatkin added the enhancement New feature or request label Nov 27, 2024
@RiskyMH RiskyMH added the bun install Something that relates to the npm-compatible client label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bun install Something that relates to the npm-compatible client enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants