@strapi/generators 4.2.0-alpha.8 → 4.2.0-alpha.9

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.
@@ -1,5 +1,5 @@
1
- import pluginPkg from '../../package.json';
1
+ const pluginPkg = require('../../package.json');
2
2
 
3
- const pluginId = pluginPkg.name.replace(/^@strapi\/plugin-/i, '');
3
+ const pluginId = pluginPkg.name.replace(/^(@[^-,.][\w,-]+\/|strapi-)plugin-/i, '');
4
4
 
5
- export default pluginId;
5
+ module.exports = pluginId;
@@ -1,5 +1,5 @@
1
1
  import pluginPkg from '../../package.json';
2
2
 
3
- const pluginId = pluginPkg.name.replace(/^@strapi\/plugin-/i, '');
3
+ const pluginId = pluginPkg.name.replace(/^(@[^-,.][\w,-]+\/|strapi-)plugin-/i, '');
4
4
 
5
5
  export default pluginId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/generators",
3
- "version": "4.2.0-alpha.8",
3
+ "version": "4.2.0-alpha.9",
4
4
  "description": "Interactive API generator.",
5
5
  "keywords": [
6
6
  "strapi",
@@ -30,8 +30,8 @@
30
30
  "main": "lib/index.js",
31
31
  "dependencies": {
32
32
  "@sindresorhus/slugify": "1.1.0",
33
- "@strapi/typescript-utils": "4.2.0-alpha.8",
34
- "@strapi/utils": "4.2.0-alpha.8",
33
+ "@strapi/typescript-utils": "4.2.0-alpha.9",
34
+ "@strapi/utils": "4.2.0-alpha.9",
35
35
  "chalk": "4.1.2",
36
36
  "fs-extra": "10.0.0",
37
37
  "node-plop": "0.26.3",
@@ -42,5 +42,5 @@
42
42
  "node": ">=12.22.0 <=16.x.x",
43
43
  "npm": ">=6.0.0"
44
44
  },
45
- "gitHead": "723b6014058169acd8146cffa364f8ea665df636"
45
+ "gitHead": "db70f0de7cc73fb469c8a076b89530729cf14142"
46
46
  }