Skip to content

Commit

Permalink
Create Block: Fix regression from _.size() removal (#42049)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla authored Jun 30, 2022
1 parent 547ad5c commit 0ab1138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create-block/lib/init-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module.exports = async ( {
}

if ( wpScripts ) {
if ( npmDependencies.length ) {
if ( npmDependencies && npmDependencies.length ) {
info( '' );
info(
'Installing npm dependencies. It might take a couple of minutes...'
Expand All @@ -99,7 +99,7 @@ module.exports = async ( {
}
}

if ( npmDevDependencies.length ) {
if ( npmDevDependencies && npmDevDependencies.length ) {
info( '' );
info(
'Installing npm devDependencies. It might take a couple of minutes...'
Expand Down

0 comments on commit 0ab1138

Please sign in to comment.