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

prefer bunfig.toml over .npmrc for install #16427

Closed
wants to merge 2 commits into from

Conversation

RiskyMH
Copy link
Member

@RiskyMH RiskyMH commented Jan 16, 2025

What does this PR do?

fixes #16274

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

made a test

@robobun
Copy link

robobun commented Jan 16, 2025

Updated 7:23 PM PT - Jan 15th, 2025

@RiskyMH, your commit a887676 has 2 failures in #9728:


🧪   try this PR locally:

bunx bun-pr 16427

@@ -8911,6 +8910,9 @@ pub const PackageManager = struct {
break :brk install_;
}, env, true, &[_][:0]const u8{".npmrc"});
}

try BunArguments.loadConfig(ctx.allocator, cli.config, ctx, .InstallCommand);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

solution is just to load bunfig after npmrc, so it can overwrite config instead

@RiskyMH RiskyMH marked this pull request as draft January 16, 2025 03:39
@RiskyMH RiskyMH closed this Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cache in .npmrc take priority over install.cache.dir in bunfig.toml
2 participants