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

Add support for Yarn PnP #98

Open
nodeworks opened this issue Oct 23, 2019 · 2 comments
Open

Add support for Yarn PnP #98

nodeworks opened this issue Oct 23, 2019 · 2 comments

Comments

@nodeworks
Copy link

Thank you for taking time to open a new issue. Please answer a few questions to help us fix it faster. You can delete text that is irrelevant to the issue.

Is this a bug report or a feature request?

Feature request

If this is a bug report, please provide as much info as possible

  • version
  • platform
  • expected behavior
  • actual behavior

If this is a new feature request, please describe it below

Add support for Yarn PnP. Currently it breaks because the post-install script uses a relative directory to check for the cypress folder:

const root = path.join(process.cwd(), '..', '..', '..')

With Yarn PnP it does not use the node_modules folder. The folder it installs in is a path like this:

.yarn/unplugged/@bahmutov-add-typescript-to-cypress-virtual-782a3ce2bf/node_modules/@bahmutov/add-typescript-to-cypress/src/add-plugin.js
@pardonmeme
Copy link

Got the same issue? Was it fixed?

error C:\Users\*\node_modules\@bahmutov\add-typescript-to-cypress: Command failed. Exit code: 1 Command: node src/add-plugin.js Arguments: Directory: C:\Users\*\node_modules\@bahmutov\add-typescript-to-cypress Output: ⚠️ Cannot find "cypress" folder in C:\Users\*

We have monorepo and there is no way to install it now :s

@RiZKiT
Copy link

RiZKiT commented Aug 4, 2020

Seems to be related to cypress-io/cypress#8008

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

No branches or pull requests

3 participants