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

bun pm pack + bundleDependencies with scoped packages #16407

Merged
merged 6 commits into from
Jan 16, 2025

Conversation

RiskyMH
Copy link
Member

@RiskyMH RiskyMH commented Jan 15, 2025

What does this PR do?

fixes #14627, fixes #16394

  • 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 15, 2025

Updated 4:14 PM PT - Jan 15th, 2025

@dylan-conway, your commit 4a9cbe2 has passed in #9687! 🎉


🧪   try this PR locally:

bunx bun-pr 16407

@@ -535,34 +535,77 @@ pub const PackCommand = struct {
while (iter.next().unwrap() catch null) |entry| {
Copy link
Member

Choose a reason for hiding this comment

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

Let's change this function to instead loop through the bundled_deps list, try to open each, and send the dir through addBundledDep if it exists, like you suggested. This way we can avoid opening both directories of a scoped package

@dylan-conway dylan-conway merged commit c297fc8 into main Jan 16, 2025
69 checks passed
@dylan-conway dylan-conway deleted the riskymh/scoped-pack-bundled branch January 16, 2025 00:14
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.

bun pm pack doesn't bundle bundledDependencies bun pm pack is mishandling scoped packages
3 participants