@modern-js/monorepo-generator 3.1.1 → 3.1.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 +47682 -49653
  2. package/package.json +12 -12
  3. package/src/index.ts +3 -2
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "3.1.1",
14
+ "version": "3.1.3",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -20,21 +20,21 @@
20
20
  ],
21
21
  "devDependencies": {
22
22
  "@babel/runtime": "^7.18.0",
23
- "@modern-js/codesmith": "2.0.5",
24
- "@modern-js/codesmith-api-app": "2.0.5",
25
- "@modern-js/codesmith-api-json": "2.0.5",
23
+ "@modern-js/codesmith": "2.1.0",
24
+ "@modern-js/codesmith-api-app": "2.1.0",
25
+ "@modern-js/codesmith-api-json": "2.1.0",
26
26
  "@types/jest": "^29",
27
27
  "@types/node": "^14",
28
28
  "jest": "^29",
29
29
  "typescript": "^4",
30
- "@modern-js/base-generator": "3.1.1",
31
- "@modern-js/changeset-generator": "3.1.1",
32
- "@modern-js/generator-common": "3.1.1",
33
- "@modern-js/generator-utils": "3.1.1",
34
- "@modern-js/plugin-i18n": "2.11.0",
35
- "@modern-js/packages-generator": "3.1.1",
36
- "@scripts/jest-config": "2.11.0",
37
- "@scripts/build": "2.11.0"
30
+ "@modern-js/base-generator": "3.1.3",
31
+ "@modern-js/generator-utils": "3.1.3",
32
+ "@modern-js/plugin-i18n": "2.13.0",
33
+ "@modern-js/packages-generator": "3.1.3",
34
+ "@modern-js/generator-common": "3.1.3",
35
+ "@modern-js/changeset-generator": "3.1.3",
36
+ "@scripts/jest-config": "2.13.0",
37
+ "@scripts/build": "2.13.0"
38
38
  },
39
39
  "sideEffects": false,
40
40
  "publishConfig": {
package/src/index.ts CHANGED
@@ -44,6 +44,7 @@ export const handleTemplateFile = async (
44
44
  await generatorPlugin.installPlugins(Solution.Monorepo, extra);
45
45
  const schema = generatorPlugin.getInputSchema();
46
46
  const inputValue = generatorPlugin.getInputValue();
47
+ const defaultConfig = generatorPlugin.getDefaultConfig();
47
48
  context.config.gitCommitMessage =
48
49
  generatorPlugin.getGitMessage() || context.config.gitCommitMessage;
49
50
  ans = await appApi.getInputBySchema(
@@ -51,11 +52,11 @@ export const handleTemplateFile = async (
51
52
  'formily',
52
53
  {
53
54
  ...context.config,
54
- ...inputValue,
55
+ ...defaultConfig,
55
56
  isMonorepo: true,
56
57
  },
57
58
  {},
58
- {},
59
+ { ...inputValue },
59
60
  );
60
61
  } else {
61
62
  ans = await appApi.getInputBySchemaFunc(getMonorepoSchema, {