@modern-js/mwa-generator 3.2.2 → 3.2.4
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 +2936 -3440
- package/package.json +12 -11
- package/src/index.ts +2 -4
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.2.
|
|
18
|
+
"version": "3.2.4",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -29,16 +29,17 @@
|
|
|
29
29
|
"@types/node": "^14",
|
|
30
30
|
"jest": "^29",
|
|
31
31
|
"typescript": "^5",
|
|
32
|
-
"@modern-js/base-generator": "3.2.
|
|
33
|
-
"@modern-js/generator
|
|
34
|
-
"@modern-js/
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/
|
|
37
|
-
"@modern-js/
|
|
38
|
-
"@modern-js/
|
|
39
|
-
"@modern-js/
|
|
40
|
-
"@
|
|
41
|
-
"@scripts/
|
|
32
|
+
"@modern-js/base-generator": "3.2.4",
|
|
33
|
+
"@modern-js/dependence-generator": "3.2.4",
|
|
34
|
+
"@modern-js/entry-generator": "3.2.4",
|
|
35
|
+
"@modern-js/generator-common": "3.2.4",
|
|
36
|
+
"@modern-js/generator-utils": "3.2.4",
|
|
37
|
+
"@modern-js/packages-generator": "3.2.4",
|
|
38
|
+
"@modern-js/rspack-generator": "3.2.4",
|
|
39
|
+
"@modern-js/plugin-i18n": "2.37.0",
|
|
40
|
+
"@modern-js/utils": "2.37.0",
|
|
41
|
+
"@scripts/build": "2.37.0",
|
|
42
|
+
"@scripts/jest-config": "2.37.0"
|
|
42
43
|
},
|
|
43
44
|
"sideEffects": false,
|
|
44
45
|
"publishConfig": {
|
package/src/index.ts
CHANGED
|
@@ -37,7 +37,7 @@ export const handleTemplateFile = async (
|
|
|
37
37
|
generator: GeneratorCore,
|
|
38
38
|
appApi: AppAPI,
|
|
39
39
|
) => {
|
|
40
|
-
const { isMonorepoSubProject,
|
|
40
|
+
const { isMonorepoSubProject, projectDir = '' } = context.config;
|
|
41
41
|
|
|
42
42
|
const { outputPath } = generator;
|
|
43
43
|
|
|
@@ -83,7 +83,6 @@ export const handleTemplateFile = async (
|
|
|
83
83
|
input as string,
|
|
84
84
|
path.join(process.cwd(), projectDir),
|
|
85
85
|
{
|
|
86
|
-
isTest,
|
|
87
86
|
isMwa: true,
|
|
88
87
|
},
|
|
89
88
|
),
|
|
@@ -103,7 +102,7 @@ export const handleTemplateFile = async (
|
|
|
103
102
|
validatePackagePath(
|
|
104
103
|
input as string,
|
|
105
104
|
path.join(process.cwd(), projectDir),
|
|
106
|
-
{
|
|
105
|
+
{ isMwa: true },
|
|
107
106
|
),
|
|
108
107
|
},
|
|
109
108
|
);
|
|
@@ -122,7 +121,6 @@ export const handleTemplateFile = async (
|
|
|
122
121
|
const projectPath = getMWAProjectPath(
|
|
123
122
|
packagePath as string,
|
|
124
123
|
isMonorepoSubProject,
|
|
125
|
-
isTest,
|
|
126
124
|
);
|
|
127
125
|
|
|
128
126
|
const dirname = path.basename(generator.outputPath);
|