-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Support next
as npm tag in --scripts-version
#4348
Comments
😄
It's odd to treat |
Sounds good to me. Kinda explicit package version. |
Do you want to send a PR? |
@Timer I can do it. I have a question regarding resolving package version. I see a few options:
/cc @gaearon |
There is an issue with yarn: version outputs as is.
https://github.com/yarnpkg/yarn/blob/v1.6.0/src/cli/commands/info.js#L77 We might want - result.version = version || result['dist-tags'].latest;
+ result.version = result['dist-tags'][version] || version || result['dist-tags'].latest; Should I open a PR there? |
I'm guessing just a simple check; if the string starts with |
It makes sense since other options are not validated as well (e.g. |
* Support package distribution tags (#4348) * Remove redundand variable check in `getInstallPackage` * Simplify react-scripts version using `--scripts-version=@tagname` notation * Add dist-tag tests to e2e-installs
Not sure if it is a bug or not (might be intented behavior).
Instead of writing
... --scripts-version=2.0.0-next.66cc7a90
we would write... -scripts-version=next
.Currently it installs zeit/next.js.
// EDIT
Possible solution might touch a single line:
Not sure how "breaking" this change might be.
The text was updated successfully, but these errors were encountered: