@wordpress/create-block 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  * External dependencies
3
3
  */
4
4
  const { command } = require( 'execa' );
5
- const { isEmpty, omitBy, size } = require( 'lodash' );
5
+ const { isEmpty, omitBy } = require( 'lodash' );
6
6
  const npmPackageArg = require( 'npm-package-arg' );
7
7
  const { join } = require( 'path' );
8
8
  const writePkg = require( 'write-pkg' );
@@ -76,7 +76,7 @@ module.exports = async ( {
76
76
  }
77
77
 
78
78
  if ( wpScripts ) {
79
- if ( size( npmDependencies ) ) {
79
+ if ( npmDependencies.length ) {
80
80
  info( '' );
81
81
  info(
82
82
  'Installing npm dependencies. It might take a couple of minutes...'
@@ -99,7 +99,7 @@ module.exports = async ( {
99
99
  }
100
100
  }
101
101
 
102
- if ( size( npmDevDependencies ) ) {
102
+ if ( npmDevDependencies.length ) {
103
103
  info( '' );
104
104
  info(
105
105
  'Installing npm devDependencies. It might take a couple of minutes...'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/create-block",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "Generates PHP, JS and CSS code for registering a block for a WordPress plugin.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "48d5f37dfb52d2e77c8eeb662f9874cf141b8c6b"
51
+ "gitHead": "a80eeb62ec7cb1418b9915c277e084a29d6665e3"
52
52
  }