Support `next` as npm tag in `--scripts-version`
See original GitHub issueNot 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:
- if (validSemver) {
+ if (validSemver || version === 'next') {
Not sure how “breaking” this change might be.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
npm-version - npm Docs
git-tag-version. Default: true; Type: Boolean. Tag the commit when using the npm version command. Setting this to false results in no commit being...
Read more >scripts - npm Docs
The "scripts" property of your package.json file supports a number of built-in scripts and their preset life cycle events as well as arbitrary...
Read more >Adding dist-tags to packages - npm Docs
Distribution tags (dist-tags) are human-readable labels that you can use to organize and label different versions of packages you publish. dist-tags ...
Read more >npm-dist-tag
The next tag is used by some projects to identify the upcoming version. Other than latest , no tag has any special significance...
Read more >npm-run-script
Description. This runs an arbitrary command from a package's "scripts" object. If no "command" is provided, it will list the available scripts.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
😄
It’s odd to treat
next
specifically in a different way. Maybe we can support@next
(i.e. treat@
as beginning of npm tag)?It makes sense since other options are not validated as well (e.g.
file:
or.tar.gz
). WIP.