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

feature: yarn-path to resolve paths. #6459

Open
jdalton opened this issue Oct 1, 2018 · 2 comments
Open

feature: yarn-path to resolve paths. #6459

jdalton opened this issue Oct 1, 2018 · 2 comments
Assignees
Labels

Comments

@jdalton
Copy link
Contributor

jdalton commented Oct 1, 2018

Do you want to request a feature or report a bug?

feature

What is the current behavior?

The current behavior passes the yarn-path value as-is to child.fork and child.spawn.

What is the wanted behavior?

For yarn to resolve paths so that users could specify a dev dependency like yarn-path "custom-yarn" and yarn would resolve the path to custom-yarn package.

@ghost ghost assigned arcanis Oct 1, 2018
@ghost ghost added the triaged label Oct 1, 2018
@arcanis
Copy link
Member

arcanis commented Oct 1, 2018

What's the underlying use case?

The way I see it, a custom Yarn has to be cloned/downloaded separately, not installed as a devDependency, since in order to run a devDependency you first need to run an install, which you couldn't do without the custom Yarn 🤔

@jdalton
Copy link
Contributor Author

jdalton commented Oct 1, 2018

@arcanis

The use case I had in mind would be for wrapping yarn by way of child.spawn to customize flags, params, etc.

yarn-path: "esm/yarn"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants