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

Introduce yarn.lock -> bun.lock{b} migrator #16166

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Jarred-Sumner
Copy link
Collaborator

What does this PR do?

Once complete, this will make bun install automatically migrate yarn.lock files to bun.lock, preserving versions.

The parser part is written and seems like it works. It does load dependencies from yarn.lock. It does not actually do the most important part, which is preserve versions - but that's likely because it seems like we need to read package.json to disambiguate which top-level dependencies are the root package's dependencies.

How did you verify your code works?

I copied npm's test fixtures, which will be used for tests. Thanks @isaacs

@robobun
Copy link

robobun commented Jan 4, 2025

Updated 10:07 AM PT - Jan 4th, 2025

@Jarred-Sumner, your commit e7508db has 1 failures in #8960:


🧪   try this PR locally:

bunx bun-pr 16166

};

// Helper to process dependencies from a map
const processDeps = struct {
Copy link
Member

Choose a reason for hiding this comment

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

why is this function wrapped

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.

3 participants