@modern-js/mwa-generator 2.4.6 → 2.4.7
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.
- package/dist/index.js +7 -1
- package/package.json +11 -10
package/dist/index.js
CHANGED
|
@@ -113895,7 +113895,7 @@ function getSolutionNameFromSubSolution(solution) {
|
|
|
113895
113895
|
}
|
|
113896
113896
|
return solution;
|
|
113897
113897
|
}
|
|
113898
|
-
var _SolutionText, _SubSolutionText, _SolutionToolsMap, _SolutionGenerator, _SubSolutionGenerator, Solution, SubSolution, SolutionText, SubSolutionText, SolutionToolsMap, SolutionSchema, SubSolutionSchema, BaseGenerator, SolutionGenerator, SubSolutionGenerator, ChangesetGenerator, DependenceGenerator, EntryGenerator, ElectronGenerator, EslintGenerator;
|
|
113898
|
+
var _SolutionText, _SubSolutionText, _SolutionToolsMap, _SolutionGenerator, _SubSolutionGenerator, Solution, SubSolution, SolutionText, SubSolutionText, SolutionToolsMap, SolutionSchema, SubSolutionSchema, BaseGenerator, PackagesGenerator, SolutionGenerator, SubSolutionGenerator, ChangesetGenerator, DependenceGenerator, EntryGenerator, ElectronGenerator, EslintGenerator;
|
|
113899
113899
|
var init_solution = __esmMin(() => {
|
|
113900
113900
|
init_toConsumableArray();
|
|
113901
113901
|
init_defineProperty();
|
|
@@ -114038,6 +114038,7 @@ var init_solution = __esmMin(() => {
|
|
|
114038
114038
|
}]
|
|
114039
114039
|
};
|
|
114040
114040
|
BaseGenerator = "@modern-js/base-generator";
|
|
114041
|
+
PackagesGenerator = "@modern-js/packages-generator";
|
|
114041
114042
|
SolutionGenerator = (_SolutionGenerator = {}, _defineProperty(_SolutionGenerator, Solution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SolutionGenerator, Solution.Module, "@modern-js/module-generator"), _defineProperty(_SolutionGenerator, Solution.Monorepo, "@modern-js/monorepo-generator"), _SolutionGenerator);
|
|
114042
114043
|
SubSolutionGenerator = (_SubSolutionGenerator = {}, _defineProperty(_SubSolutionGenerator, SubSolution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.MWATest, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.Module, "@modern-js/module-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.InnerModule, "@modern-js/module-generator"), _SubSolutionGenerator);
|
|
114043
114044
|
ChangesetGenerator = "@modern-js/changeset-generator";
|
|
@@ -114776,6 +114777,7 @@ __export2(treeshaking_exports5, {
|
|
|
114776
114777
|
PackageManagerSchema: () => PackageManagerSchema,
|
|
114777
114778
|
PackageNameSchema: () => PackageNameSchema,
|
|
114778
114779
|
PackagePathSchema: () => PackagePathSchema,
|
|
114780
|
+
PackagesGenerator: () => PackagesGenerator,
|
|
114779
114781
|
RunWay: () => RunWay,
|
|
114780
114782
|
RunWaySchema: () => RunWaySchema,
|
|
114781
114783
|
ServerSchema: () => ServerSchema,
|
|
@@ -146193,6 +146195,10 @@ var handleTemplateFile = async (context, generator, appApi) => {
|
|
|
146193
146195
|
path: projectPath
|
|
146194
146196
|
});
|
|
146195
146197
|
}
|
|
146198
|
+
const { packagesInfo } = context.config;
|
|
146199
|
+
if (packagesInfo && Object.keys(packagesInfo).length > 0) {
|
|
146200
|
+
await appApi.runSubGenerator(getGeneratorPath(PackagesGenerator, context.config.distTag), void 0, context.config);
|
|
146201
|
+
}
|
|
146196
146202
|
return { projectPath, isElectron: runWay === RunWay.Electron };
|
|
146197
146203
|
};
|
|
146198
146204
|
var src_default = async (context, generator) => {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.4.
|
|
14
|
+
"version": "2.4.7",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
@@ -20,18 +20,19 @@
|
|
|
20
20
|
],
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@babel/runtime": "^7.18.0",
|
|
23
|
-
"@modern-js/base-generator": "2.4.
|
|
23
|
+
"@modern-js/base-generator": "2.4.7",
|
|
24
24
|
"@modern-js/codesmith": "1.6.3",
|
|
25
25
|
"@modern-js/codesmith-api-app": "1.6.3",
|
|
26
26
|
"@modern-js/codesmith-api-json": "1.6.3",
|
|
27
|
-
"@modern-js/dependence-generator": "2.4.
|
|
28
|
-
"@modern-js/electron-generator": "2.4.
|
|
29
|
-
"@modern-js/entry-generator": "2.4.
|
|
30
|
-
"@modern-js/generator-common": "2.4.
|
|
31
|
-
"@modern-js/generator-utils": "2.4.
|
|
32
|
-
"@modern-js/
|
|
33
|
-
"@
|
|
34
|
-
"@scripts/
|
|
27
|
+
"@modern-js/dependence-generator": "2.4.7",
|
|
28
|
+
"@modern-js/electron-generator": "2.4.7",
|
|
29
|
+
"@modern-js/entry-generator": "2.4.7",
|
|
30
|
+
"@modern-js/generator-common": "2.4.7",
|
|
31
|
+
"@modern-js/generator-utils": "2.4.7",
|
|
32
|
+
"@modern-js/packages-generator": "2.4.7",
|
|
33
|
+
"@modern-js/plugin-i18n": "1.21.2",
|
|
34
|
+
"@scripts/build": "1.21.2",
|
|
35
|
+
"@scripts/jest-config": "1.21.2",
|
|
35
36
|
"@types/jest": "^27",
|
|
36
37
|
"@types/node": "^14",
|
|
37
38
|
"jest": "^27",
|