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

Allow React to be detected in NPM Workspaces #864

Merged
merged 5 commits into from
Jan 29, 2024
Merged

Conversation

deavial
Copy link
Contributor

@deavial deavial commented Jan 12, 2024

Details

React is detected by looking for a react devDependency or dependency. NPM Workspaces (mono repos) do not define these in the project package.json. The mono repo will fail if they are defined. The mono repo root has the dependencies listed.

When looking for React in this type of environment, the peerDependencies should be inspected instead.

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I agree to license this contribution under the MIT LICENSE
  • I checked the current PR for duplication.

Contacts

  • Discord ID: deavial

If your PR is accepted, we will award you with the Contributor role on Discord server.

To join the server, visit: https://www.plasmo.com/s/d

deavial and others added 4 commits January 9, 2024 13:20
React is detected by looking for a react devDependency or dependency. NPM Workspaces (mono repos) do not define these in the project package.json. The mono repo will fail if they are defined. The mono repo root has the dependencies listed.

When looking for React in this type of environment, the peerDependencies should be inspected instead.
@deavial
Copy link
Contributor Author

deavial commented Jan 29, 2024

@louisgv any updates on this pr? currently i have to manually create a patch on minified code for each release.

@louisgv
Copy link
Contributor

louisgv commented Jan 29, 2024

@deavial merging and releasing soon - sorry for the delay. I was trying to fix up some test and the resolver before putting this in.

@louisgv louisgv merged commit f9e9c01 into PlasmoHQ:main Jan 29, 2024
1 check passed
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