@modern-js/repo-generator 3.3.24 → 3.4.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.
Files changed (3) hide show
  1. package/dist/index.js +506 -681
  2. package/package.json +10 -11
  3. package/src/index.ts +4 -19
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.3.24",
18
+ "version": "3.4.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,7 +23,7 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "dependencies": {
26
- "@modern-js/utils": "2.51.0"
26
+ "@modern-js/utils": "2.53.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@modern-js/codesmith": "2.3.5",
@@ -32,15 +32,14 @@
32
32
  "@types/node": "^14",
33
33
  "jest": "^29",
34
34
  "typescript": "^5",
35
- "@modern-js/base-generator": "3.3.24",
36
- "@modern-js/generator-common": "3.3.24",
37
- "@modern-js/generator-plugin": "3.3.24",
38
- "@modern-js/generator-utils": "3.3.24",
39
- "@modern-js/monorepo-generator": "3.3.24",
40
- "@modern-js/module-generator": "3.3.24",
41
- "@modern-js/mwa-generator": "3.3.24",
42
- "@scripts/jest-config": "2.51.0",
43
- "@scripts/build": "2.51.0"
35
+ "@modern-js/generator-common": "3.4.0",
36
+ "@modern-js/generator-plugin": "3.4.0",
37
+ "@modern-js/base-generator": "3.4.0",
38
+ "@modern-js/generator-utils": "3.4.0",
39
+ "@modern-js/module-generator": "3.4.0",
40
+ "@scripts/build": "2.53.0",
41
+ "@modern-js/mwa-generator": "3.4.0",
42
+ "@scripts/jest-config": "2.53.0"
44
43
  },
45
44
  "sideEffects": false,
46
45
  "publishConfig": {
package/src/index.ts CHANGED
@@ -8,10 +8,6 @@ import {
8
8
  Solution,
9
9
  SolutionDefaultConfig,
10
10
  BaseGenerator,
11
- getMonorepoNewActionSchema,
12
- SubSolution,
13
- SubSolutionGenerator,
14
- MonorepoNewActionConfig,
15
11
  getScenesSchema,
16
12
  } from '@modern-js/generator-common';
17
13
  import { getGeneratorPath } from '@modern-js/generator-utils';
@@ -50,24 +46,16 @@ const handleTemplateFile = async (
50
46
  appApi: AppAPI,
51
47
  generatorPlugin?: GeneratorPlugin,
52
48
  ) => {
53
- const { isMonorepo } = context.config;
54
-
55
- const { solution } = await appApi.getInputBySchemaFunc(
56
- isMonorepo ? getMonorepoNewActionSchema : getSolutionSchema,
57
- {
58
- ...context.config,
59
- customPlugin: generatorPlugin?.customPlugin,
60
- },
61
- );
49
+ const { solution } = await appApi.getInputBySchemaFunc(getSolutionSchema, {
50
+ ...context.config,
51
+ customPlugin: generatorPlugin?.customPlugin,
52
+ });
62
53
 
63
54
  await appApi.getInputBySchemaFunc(getScenesSchema, context.config);
64
55
 
65
56
  const solutionGenerator =
66
- // eslint-disable-next-line no-nested-ternary
67
57
  solution === 'custom'
68
58
  ? BaseGenerator
69
- : isMonorepo
70
- ? SubSolutionGenerator[solution as SubSolution]
71
59
  : SolutionGenerator[solution as Solution];
72
60
 
73
61
  if (!solution || !solutionGenerator) {
@@ -78,9 +66,6 @@ const handleTemplateFile = async (
78
66
  getGeneratorPath(solutionGenerator, context.config.distTag, [__dirname]),
79
67
  undefined,
80
68
  {
81
- ...(isMonorepo
82
- ? MonorepoNewActionConfig[solution as SubSolution] || {}
83
- : {}),
84
69
  ...context.config,
85
70
  hasPlugin: getNeedRunPlugin(context, generatorPlugin),
86
71
  generatorPlugin,