question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support `next` as npm tag in `--scripts-version`

See original GitHub issue

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:

- if (validSemver) {
+ if (validSemver || version === 'next') {

Not sure how “breaking” this change might be.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
gaearoncommented, Apr 23, 2018

Currently it installs zeit/next.js.

😄

Possible solution might touch a single line:

It’s odd to treat next specifically in a different way. Maybe we can support @next (i.e. treat @ as beginning of npm tag)?

0reactions
miraagecommented, Apr 24, 2018

It makes sense since other options are not validated as well (e.g. file: or .tar.gz). WIP.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found