Open qm3ster opened 5 years ago
We should definitely support this! It's probably pretty easy to implement.
The code is here.
Perhaps anything that fails semver parsing should just go in the next ("latest"
) branch?
(With "latest"
literal generalized to initialSpec
)
Or if the string fails SemVer parsing, we can invoke npm dist-tags ls <package name>
to see if it refers to a dist-tag.
Is there a workaround for this? I see the issue has been open for a while, or are people just not using next packages?
@antony you just have to use whatever version that the dist tag is pointed to. still, surprising that rush doesn't recognize dist tags except for latest
.
Currently, running
rush add
with a tag specifier as the version doesn't work, unlike in the package managers. Example:This fails with
ERROR: The SemVer specifier "next" is not valid.
Suggested behavior:
This should resolve to the latest version with the tag, then save it in accordance with
--caret
|--exact
flags.