Skip to content

Commit

Permalink
Handle packages without dependencies (#12217)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn authored Feb 12, 2018
1 parent fb85cf2 commit e2563a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/release/build-commands/check-package-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ const check = async ({cwd, packages}) => {
const rootVersion = rootPackage.devDependencies[module];

projectPackages.forEach(projectPackage => {
const projectVersion = projectPackage.dependencies[module];
// Not all packages have dependencies (eg react-is)
const projectVersion = projectPackage.dependencies
? projectPackage.dependencies[module]
: undefined;

if (rootVersion !== projectVersion && projectVersion !== undefined) {
invalidDependencies.push(
Expand Down

0 comments on commit e2563a3

Please sign in to comment.