@wordpress/create-block 4.75.0 → 4.75.1-next.47f435fc9.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.
@@ -37,14 +37,15 @@ module.exports = async ( {
37
37
  function checkDependency( packageArg ) {
38
38
  const { type } = npmPackageArg( packageArg );
39
39
  if (
40
- ! [ 'git', 'tag', 'version', 'range', 'remote' ].includes( type )
40
+ ! [ 'git', 'tag', 'version', 'range', 'remote', 'alias' ].includes(
41
+ type
42
+ )
41
43
  ) {
42
44
  throw new Error(
43
45
  `Provided package type "${ type }" is not supported.`
44
46
  );
45
47
  }
46
48
  }
47
-
48
49
  const dependencies = {};
49
50
  const devDependencies = {};
50
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/create-block",
3
- "version": "4.75.0",
3
+ "version": "4.75.1-next.47f435fc9.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",
@@ -27,12 +27,18 @@
27
27
  "lib"
28
28
  ],
29
29
  "main": "index.js",
30
+ "exports": {
31
+ ".": {
32
+ "default": "./index.js"
33
+ },
34
+ "./package.json": "./package.json"
35
+ },
30
36
  "bin": {
31
37
  "wp-create-block": "./index.js"
32
38
  },
33
39
  "dependencies": {
34
40
  "@inquirer/prompts": "^7.2.0",
35
- "@wordpress/lazy-import": "^2.32.0",
41
+ "@wordpress/lazy-import": "^2.32.1-next.47f435fc9.0",
36
42
  "chalk": "^4.0.0",
37
43
  "change-case": "^4.1.2",
38
44
  "check-node-version": "^4.1.0",
@@ -48,5 +54,5 @@
48
54
  "publishConfig": {
49
55
  "access": "public"
50
56
  },
51
- "gitHead": "a030b4c0e0695239b942c7dc18511782b64f10ed"
57
+ "gitHead": "9720f22c138771d2ed1a0522725c3cdf1c242953"
52
58
  }