@wordpress/create-block 4.25.1-next.5a1d1283.0 → 4.26.1

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.
package/README.md CHANGED
@@ -100,7 +100,7 @@ $ npx @wordpress/create-block@latest --template ./path/to/template-directory
100
100
 
101
101
  #### `--variant`
102
102
 
103
- With this argument, `create-block` will generate a [dynamic block](https://developer.wordpress.org/block-editor/explanations/glossary/#dynamic-block) based on the built-in template.
103
+ With this argument, `create-block` will generate a [dynamic block](https://developer.wordpress.org/block-editor/getting-started/glossary/#dynamic-block) based on the built-in template.
104
104
 
105
105
  ```bash
106
106
  $ npx @wordpress/create-block@latest --variant dynamic
package/lib/index.js CHANGED
@@ -185,9 +185,8 @@ program
185
185
  ],
186
186
  variant
187
187
  ).filter( filterOptionsProvided );
188
- const result = await inquirer.prompt(
189
- pluginPrompts
190
- );
188
+ const result =
189
+ await inquirer.prompt( pluginPrompts );
191
190
  return result;
192
191
  } )
193
192
  : {};
@@ -13,6 +13,10 @@
13
13
  * }
14
14
  * ```
15
15
  *
16
+ * If you're not making any changes to this file because your project doesn't need any
17
+ * JavaScript running in the front-end, then you should delete this file and remove
18
+ * the `viewScript` property from `block.json`.
19
+ *
16
20
  * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#view-script
17
21
  */
18
22
 
package/lib/templates.js CHANGED
@@ -202,9 +202,11 @@ const getPluginTemplate = async ( templateName ) => {
202
202
 
203
203
  const { name } = npmPackageArg( templateName );
204
204
  return await configToTemplate(
205
- require( require.resolve( name, {
206
- paths: [ tempCwd ],
207
- } ) )
205
+ require(
206
+ require.resolve( name, {
207
+ paths: [ tempCwd ],
208
+ } )
209
+ )
208
210
  );
209
211
  } catch ( error ) {
210
212
  if ( error instanceof CLIError ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/create-block",
3
- "version": "4.25.1-next.5a1d1283.0",
3
+ "version": "4.26.1",
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",
@@ -31,7 +31,7 @@
31
31
  "wp-create-block": "./index.js"
32
32
  },
33
33
  "dependencies": {
34
- "@wordpress/lazy-import": "^1.28.1-next.5a1d1283.0",
34
+ "@wordpress/lazy-import": "^1.29.1",
35
35
  "chalk": "^4.0.0",
36
36
  "change-case": "^4.1.2",
37
37
  "check-node-version": "^4.1.0",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "fa0b66987dab5a15f38663e06036d09bccffaa4b"
51
+ "gitHead": "4987d16acb5c41b62704dc4f88225acb97ddd698"
52
52
  }