Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: don't use peer deps - use regular deps #736

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

Closed
pieh wants to merge 6 commits into main from fix/no-peer-deps
Closed

Conversation

@pieh
Copy link
Contributor

@pieh pieh commented Dec 19, 2023
edited
Loading

Summary

This removes peer deps usage of build plugin - those cause problems in autoinstallation scenarios with package managers that enforce strict dependencies / no hoisting scenarios (for example by default with pnpm)

Test plan

  1. Visit the Deploy Preview (insert link to specific page) ...

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal

https://linear.app/netlify/issue/COM-225/netlify-dev-fails-on-monorepo-setup#comment-a8eee1ec

Standard checks:

  • Check the Deploy Preview's Demo site for your PR's functionality
  • Add docs when necessary

🧪 Once merged, make sure to update the version if needed and that it was
published correctly.

Copy link

netlify bot commented Dec 19, 2023
edited
Loading

Deploy Preview for netlify-plugin-gatsby-demo ready!

Name Link
🔨 Latest commit a6201e9
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-gatsby-demo/deploys/6581b7c0263f70000841e26a
😎 Deploy Preview https://deploy-preview-736--netlify-plugin-gatsby-demo.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.

Copy link

netlify bot commented Dec 19, 2023
edited
Loading

Deploy Preview for netlify-plugin-gatsby-demo-v5 ready!

Name Link
🔨 Latest commit a6201e9
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-gatsby-demo-v5/deploys/6581b7c0f4b7ed0008378756
😎 Deploy Preview https://deploy-preview-736--netlify-plugin-gatsby-demo-v5.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.

Comment on lines -19 to -23
/**
* Depending on the version of '@gatsbyjs/reach-router' installed, the 'match' method may not be defined.
* This check ensures that this continues to work as expected between v1 and v2 of the package.
*/
const reachMatch = reachRouterMatch || reachRouterMatchPath
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the behavior of match (v2 of router) / matchPath (v1 of router) did not change - with move to actual dependency we don't need to pick one or the other and can straight import match as reachMatch

@pieh pieh closed this Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /