@modern-js/server-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.
Files changed (3) hide show
  1. package/dist/index.js +17271 -17270
  2. package/package.json +10 -10
  3. package/src/index.ts +1 -3
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.4.14",
18
+ "version": "3.4.16",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./src/index.ts",
21
21
  "main": "./dist/index.js",
@@ -24,21 +24,21 @@
24
24
  "/dist/index.js"
25
25
  ],
26
26
  "dependencies": {
27
- "@modern-js/utils": "2.58.0"
27
+ "@modern-js/utils": "2.58.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@modern-js/codesmith": "2.3.5",
31
- "@modern-js/codesmith-api-app": "2.3.5",
32
- "@modern-js/codesmith-api-json": "2.3.5",
30
+ "@modern-js/codesmith": "2.4.1",
31
+ "@modern-js/codesmith-api-app": "2.4.1",
32
+ "@modern-js/codesmith-api-json": "2.4.1",
33
33
  "@types/jest": "^29",
34
34
  "@types/node": "^14",
35
35
  "jest": "^29",
36
36
  "typescript": "^5",
37
- "@modern-js/generator-common": "3.4.14",
38
- "@modern-js/generator-utils": "3.4.14",
39
- "@modern-js/dependence-generator": "3.4.14",
40
- "@scripts/build": "2.58.0",
41
- "@scripts/jest-config": "2.58.0"
37
+ "@modern-js/generator-common": "3.4.16",
38
+ "@modern-js/dependence-generator": "3.4.16",
39
+ "@modern-js/generator-utils": "3.4.16",
40
+ "@scripts/build": "2.58.2",
41
+ "@scripts/jest-config": "2.58.2"
42
42
  },
43
43
  "sideEffects": false,
44
44
  "publishConfig": {
package/src/index.ts CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  readTsConfigByFile,
7
7
  getGeneratorPath,
8
8
  } from '@modern-js/generator-utils';
9
- import { GeneratorContext, GeneratorCore } from '@modern-js/codesmith';
9
+ import type { GeneratorContext, GeneratorCore } from '@modern-js/codesmith';
10
10
  import { AppAPI } from '@modern-js/codesmith-api-app';
11
11
  import { JsonAPI } from '@modern-js/codesmith-api-json';
12
12
  import {
@@ -44,7 +44,6 @@ const handleTemplateFile = async (
44
44
  const files = fs.readdirSync('server');
45
45
  if (files.length > 0) {
46
46
  generator.logger.warn("'server' is already exist");
47
- // eslint-disable-next-line no-process-exit
48
47
  process.exit(1);
49
48
  }
50
49
  }
@@ -109,7 +108,6 @@ export default async (context: GeneratorContext, generator: GeneratorCore) => {
109
108
  appApi.i18n.changeLanguage({ locale });
110
109
 
111
110
  if (!(await appApi.checkEnvironment())) {
112
- // eslint-disable-next-line no-process-exit
113
111
  process.exit(1);
114
112
  }
115
113