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

Fix loading deps which use module name remapping #5747

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yann300
Copy link
Contributor

@yann300 yann300 commented Feb 10, 2025

  • L273: check if the version contains npm: and replace the value if this is the case.
  • resolving deps would only work before for dependencies that are specified in the package.json, not the sub-deps present in yarn or in package-lock.json.
    So instead of looking at the deps L150 and then trying to resolve the version, we just infer the package name from the fetchUrl.

@yann300 yann300 requested a review from bunsenstraat February 10, 2025 16:02
Copy link

netlify bot commented Feb 10, 2025

Deploy Preview for remixproject ready!

Name Link
🔨 Latest commit da1632e
🔍 Latest deploy log https://app.netlify.com/sites/remixproject/deploys/67adf3c267eedf000890711b
😎 Deploy Preview https://deploy-preview-5747--remixproject.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yann300 yann300 changed the title fix_resolving_pkg Fix loading deps which use module name remapping Feb 10, 2025
@yann300 yann300 force-pushed the fix_module_renaming branch from 531199c to 929f181 Compare February 10, 2025 16:35
@bunsenstraat
Copy link
Collaborator

can we cover these use cases with tests?

@yann300 yann300 force-pushed the fix_module_renaming branch from 0ec8062 to da1632e Compare February 13, 2025 13:29
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.

2 participants