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

adjust moved-package-target for namespaced packages #1663

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Nov 14, 2023

I don't think this was actually breaking anything but it produced more confusing error messages when a module is missing.

I don't think this was actually breaking anything but it produced more confusing error messages when a module is missing.
@ef4 ef4 merged commit 2914652 into main Nov 14, 2023
204 checks passed
@ef4 ef4 deleted the namespaced-moved branch November 14, 2023 20:44
@@ -52,7 +52,12 @@ ${summarizePeerDepViolations(violations)}
});

let fakeTargets = Object.values(index.packages).map(dir => {
return writeFile(join(dir, '..', 'moved-package-target.js'), '');
let segments = dir.split('/');
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ef4 is it ok for this to not split on sep ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually tried that first and it breaks, because the index of moved packages here is always assembled in unix format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants