Skip to content

fix: fix npm_imports and packages list unaligned bug#624

Merged
gregmagolan merged 1 commit intomainfrom
npm_translate_lock_bug
Nov 18, 2022
Merged

fix: fix npm_imports and packages list unaligned bug#624
gregmagolan merged 1 commit intomainfrom
npm_translate_lock_bug

Conversation

@gregmagolan
Copy link
Member

@gregmagolan gregmagolan commented Nov 18, 2022

Tricky one. npm_imports can fall out of line from packages list when one of the packages is a file: link. Code was relying on the back practice of indexes lining up in two different lists 🤦

@gregmagolan
Copy link
Member Author

Ugh. The test case is really tricky since pnpm generally puts file: packages at the end of the list of packages. The only repro I had is in the vscode repo and I'm not sure why pnpm behaved differently there. Going to land this as-is as it is strictly correct and better than using the index.

@gregmagolan gregmagolan merged commit 3c3e064 into main Nov 18, 2022
@gregmagolan gregmagolan deleted the npm_translate_lock_bug branch November 18, 2022 20:34
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.

1 participant