@modern-js/repo-generator 3.2.1 → 3.2.3

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.
Files changed (3) hide show
  1. package/dist/index.js +34969 -3303
  2. package/package.json +11 -11
  3. package/src/index.ts +4 -12
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.2.1",
18
+ "version": "3.2.3",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -29,16 +29,16 @@
29
29
  "@types/node": "^14",
30
30
  "jest": "^29",
31
31
  "typescript": "^5",
32
- "@modern-js/generator-plugin": "3.2.1",
33
- "@modern-js/module-generator": "3.2.1",
34
- "@modern-js/monorepo-generator": "3.2.1",
35
- "@modern-js/mwa-generator": "3.2.1",
36
- "@modern-js/utils": "2.35.0",
37
- "@modern-js/generator-utils": "3.2.1",
38
- "@modern-js/generator-common": "3.2.1",
39
- "@modern-js/base-generator": "3.2.1",
40
- "@scripts/jest-config": "2.35.0",
41
- "@scripts/build": "2.35.0"
32
+ "@modern-js/base-generator": "3.2.3",
33
+ "@modern-js/monorepo-generator": "3.2.3",
34
+ "@modern-js/mwa-generator": "3.2.3",
35
+ "@modern-js/utils": "2.36.0",
36
+ "@modern-js/generator-common": "3.2.3",
37
+ "@modern-js/generator-plugin": "3.2.3",
38
+ "@modern-js/generator-utils": "3.2.3",
39
+ "@scripts/jest-config": "2.36.0",
40
+ "@scripts/build": "2.36.0",
41
+ "@modern-js/module-generator": "3.2.3"
42
42
  },
43
43
  "sideEffects": false,
44
44
  "publishConfig": {
package/src/index.ts CHANGED
@@ -13,7 +13,6 @@ import {
13
13
  SubSolution,
14
14
  SubSolutionGenerator,
15
15
  MonorepoNewActionConfig,
16
- getSolutionNameFromSubSolution,
17
16
  getScenesSchema,
18
17
  } from '@modern-js/generator-common';
19
18
  import { GeneratorPlugin } from '@modern-js/generator-plugin';
@@ -47,18 +46,11 @@ const getNeedRunPlugin = (
47
46
  return false;
48
47
  }
49
48
  const { extendPlugin, customPlugin } = generatorPlugin;
50
- const { isMonorepo, solution, scenes } = context.config;
51
- const pluginSolution = isMonorepo
52
- ? getSolutionNameFromSubSolution(solution)
53
- : solution;
54
- if (!scenes || scenes === pluginSolution) {
55
- return (
56
- extendPlugin?.[pluginSolution] && extendPlugin[pluginSolution].length > 0
57
- );
49
+ const { solution, scenes } = context.config;
50
+ if (!scenes || scenes === solution) {
51
+ return extendPlugin?.[solution] && extendPlugin[solution].length > 0;
58
52
  }
59
- return Boolean(
60
- customPlugin[pluginSolution]?.find(plugin => plugin.key === scenes),
61
- );
53
+ return Boolean(customPlugin[solution]?.find(plugin => plugin.key === scenes));
62
54
  };
63
55
 
64
56
  const handleTemplateFile = async (