@modern-js/mwa-generator 3.4.14 → 3.4.16
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 +16441 -16469
- package/package.json +13 -13
- package/src/index.ts +1 -4
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.4.
|
|
18
|
+
"version": "3.4.16",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -23,24 +23,24 @@
|
|
|
23
23
|
"/dist/index.js"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@modern-js/utils": "2.58.
|
|
26
|
+
"@modern-js/utils": "2.58.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@modern-js/codesmith": "2.
|
|
30
|
-
"@modern-js/codesmith-api-app": "2.
|
|
29
|
+
"@modern-js/codesmith": "2.4.1",
|
|
30
|
+
"@modern-js/codesmith-api-app": "2.4.1",
|
|
31
31
|
"@types/jest": "^29",
|
|
32
32
|
"@types/node": "^14",
|
|
33
33
|
"jest": "^29",
|
|
34
34
|
"typescript": "^5",
|
|
35
|
-
"@modern-js/base-generator": "3.4.
|
|
36
|
-
"@modern-js/
|
|
37
|
-
"@modern-js/generator
|
|
38
|
-
"@modern-js/
|
|
39
|
-
"@modern-js/
|
|
40
|
-
"@modern-js/
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@scripts/jest-config": "2.58.
|
|
35
|
+
"@modern-js/base-generator": "3.4.16",
|
|
36
|
+
"@modern-js/dependence-generator": "3.4.16",
|
|
37
|
+
"@modern-js/entry-generator": "3.4.16",
|
|
38
|
+
"@modern-js/generator-common": "3.4.16",
|
|
39
|
+
"@modern-js/generator-utils": "3.4.16",
|
|
40
|
+
"@modern-js/packages-generator": "3.4.16",
|
|
41
|
+
"@modern-js/plugin-i18n": "2.58.2",
|
|
42
|
+
"@scripts/build": "2.58.2",
|
|
43
|
+
"@scripts/jest-config": "2.58.2"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"publishConfig": {
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
|
-
import { GeneratorContext, GeneratorCore } from '@modern-js/codesmith';
|
|
2
|
+
import type { GeneratorContext, GeneratorCore } from '@modern-js/codesmith';
|
|
3
3
|
import { AppAPI } from '@modern-js/codesmith-api-app';
|
|
4
4
|
import {
|
|
5
5
|
i18n as commonI18n,
|
|
@@ -207,7 +207,6 @@ export default async (context: GeneratorContext, generator: GeneratorCore) => {
|
|
|
207
207
|
i18n.changeLanguage({ locale });
|
|
208
208
|
|
|
209
209
|
if (!(await appApi.checkEnvironment())) {
|
|
210
|
-
// eslint-disable-next-line no-process-exit
|
|
211
210
|
process.exit(1);
|
|
212
211
|
}
|
|
213
212
|
|
|
@@ -220,7 +219,6 @@ export default async (context: GeneratorContext, generator: GeneratorCore) => {
|
|
|
220
219
|
({ projectPath } = await handleTemplateFile(context, generator, appApi));
|
|
221
220
|
} catch (e) {
|
|
222
221
|
generator.logger.error(e);
|
|
223
|
-
// eslint-disable-next-line no-process-exit
|
|
224
222
|
process.exit(1);
|
|
225
223
|
}
|
|
226
224
|
|
|
@@ -237,7 +235,6 @@ export default async (context: GeneratorContext, generator: GeneratorCore) => {
|
|
|
237
235
|
await appApi.runGitAndInstall(context.config.gitCommitMessage);
|
|
238
236
|
} catch (e) {
|
|
239
237
|
generator.logger.error(e);
|
|
240
|
-
// eslint-disable-next-line no-process-exit
|
|
241
238
|
process.exit(1);
|
|
242
239
|
}
|
|
243
240
|
|