Skip to content

Commit

Permalink
fix: ignore anti semver tips on <name>@* deps (#446)
Browse files Browse the repository at this point in the history
closes #445
  • Loading branch information
fengmk2 authored Jan 28, 2023
1 parent 070475b commit 317bcbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/install_package.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ async function _install(parentDir, pkg, ancestors, options, context) {
const res = await matchAncestorDependencies(p, ancestorsWithRoot, options, context);
if (res) {
// output anti semver info if not the same version
if (res.childResolved !== res.ancestorResolved) {
// ignore `<name>@*`
if (res.childResolved !== res.ancestorResolved && res.childSpec !== '*') {
options.pendingMessages.push([
'warn',
'%s %s delcares %s(resolved as %s) but using ancestor(%s)\'s dependency %s(resolved as %s)',
Expand Down

0 comments on commit 317bcbb

Please sign in to comment.