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

Make debug work with yarn 3 workspaces #83

Closed

Conversation

adriencaccia
Copy link

@adriencaccia adriencaccia commented Sep 11, 2022

Fix #84

As explained in the comment of the second commit:

When using yarn 3 with workspaces though, the vitest executable can be present only in the project's root node_modules folder.

The solution I propose is to iterate recursively on parent directories until we find the vitest executable.

@seivan
Copy link

seivan commented Sep 21, 2022

When using yarn 3 with workspaces though, the vitest executable can be present only in the project's root node_modules folder.

An alternative approach is to do what yarn itself does when it needs access to executables.
Going through pnipify is one option, another one is the same as the VSCode extension for mapping code through the archived files.

Wouldn't be too hard to map from the .pnp file.

@sheremet-va
Copy link
Member

The extension was rewritten from the ground up in #253.

It doesn't support pnp yet, feel free to open a separate PR to fix that.

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.

Debug not working with yarn 3 workspaces
3 participants