You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys, I'm not sure if this is a "bug" or if I have misunderstood something. See the following scenario:
The version in my package.json: "version": "0.2.1-rc.0".
Now I want to release a new rc-version (0.2.1-rc.1) and execute release-it --preRelease=rc --npm.tag=next, but I get this warning WARNING No version found in npm registry. Assuming new package.. Just for your information, the version detection (0.2.1-rc.1) works anyway and the package is in the registry, it's just the warning. I did a little debugging (with --dry-run) and found out, that release-it looks for the wrong npm tag: $ npm show <hidden-name>@rc version (rc instead of next).
After some more debugging, I found that when I changed the following function
it works as expected and the warning is no longer shown.
A --dry-run shows now $ npm show <hidden-name>@next version
I didn't go deeper into the code, so I can't judge if it's a good idea to adopt this change or what it might do. Maybe I just misunderstood something and that's why I get the warning. But if not, I can create a PR if you wish.
The text was updated successfully, but these errors were encountered:
Hi guys, I'm not sure if this is a "bug" or if I have misunderstood something. See the following scenario:
The version in my package.json:
"version": "0.2.1-rc.0"
.Now I want to release a new rc-version (0.2.1-rc.1) and execute
release-it --preRelease=rc --npm.tag=next
, but I get this warningWARNING No version found in npm registry. Assuming new package.
. Just for your information, the version detection (0.2.1-rc.1) works anyway and the package is in the registry, it's just the warning. I did a little debugging (with--dry-run
) and found out, that release-it looks for the wrong npm tag:$ npm show <hidden-name>@rc version
(rc instead of next).After some more debugging, I found that when I changed the following function
release-it/lib/plugin/npm/npm.js
Lines 164 to 167 in 47548b5
into
it works as expected and the warning is no longer shown.
A
--dry-run
shows now$ npm show <hidden-name>@next version
I didn't go deeper into the code, so I can't judge if it's a good idea to adopt this change or what it might do. Maybe I just misunderstood something and that's why I get the warning. But if not, I can create a PR if you wish.
The text was updated successfully, but these errors were encountered: