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

fix: support npx again with stdin #16

Merged
merged 1 commit into from
Jan 12, 2022
Merged

fix: support npx again with stdin #16

merged 1 commit into from
Jan 12, 2022

Conversation

AndersDJohnson
Copy link
Owner

@AndersDJohnson AndersDJohnson commented Jan 12, 2022

Hopefully addresses #15.

Those using npx use-yarn will want to update their preinstall scripts as follows:

-  "preinstall": "npx use-yarn"
+  "preinstall": "echo $npm_execpath | npx use-yarn"

The change is intended to be backwards compatible.

@AndersDJohnson AndersDJohnson marked this pull request as ready for review January 12, 2022 12:50
@AndersDJohnson AndersDJohnson merged commit fff9458 into master Jan 12, 2022
@AndersDJohnson AndersDJohnson deleted the npx-stdin branch January 12, 2022 12:52
@AndersDJohnson
Copy link
Owner Author

Followed up in cbec3f3 to support passing as a simpler command argument instead of standard input.

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.

1 participant