Skip to content

Commit

Permalink
fix(@schematics/update): missing peer dependencies are now warnings i…
Browse files Browse the repository at this point in the history
…nstead of errors
  • Loading branch information
clydin authored and vikerman committed Oct 27, 2019
1 parent 7424b2e commit 3cc2499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/schematics/update/update/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ function _validateForwardPeerDependencies(
logger.debug(`Checking forward peer ${peer}...`);
const maybePeerInfo = infoMap.get(peer);
if (!maybePeerInfo) {
logger.error([
logger.warn([
`Package ${JSON.stringify(name)} has a missing peer dependency of`,
`${JSON.stringify(peer)} @ ${JSON.stringify(range)}.`,
].join(' '));

return true;
return false;
}

const peerVersion = maybePeerInfo.target && maybePeerInfo.target.packageJson.version
Expand Down

0 comments on commit 3cc2499

Please sign in to comment.