@modern-js/app-tools 1.4.7-canary.1 → 1.5.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @modern-js/app-tools
2
2
 
3
+ ## 1.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d2d1d6b2: feat: support server config
8
+
9
+ ### Patch Changes
10
+
11
+ - 6aa80baa: fix: Generate config helper file only config file exist
12
+ - Updated dependencies [60855eb2]
13
+ - Updated dependencies [046e58aa]
14
+ - Updated dependencies [ec1b7367]
15
+ - Updated dependencies [77ff9754]
16
+ - Updated dependencies [d2d1d6b2]
17
+ - Updated dependencies [07a4887e]
18
+ - Updated dependencies [ea2ae711]
19
+ - Updated dependencies [17d0cc46]
20
+ - Updated dependencies [d2d1d6b2]
21
+ - @modern-js/core@1.7.0
22
+ - @modern-js/plugin-analyze@1.3.6
23
+ - @modern-js/webpack@1.5.4
24
+ - @modern-js/utils@1.4.0
25
+ - @modern-js/prod-server@1.1.0
26
+ - @modern-js/node-bundle-require@1.3.0
27
+ - @modern-js/types@1.4.0
28
+ - @modern-js/plugin-i18n@1.2.3
29
+ - @modern-js/new-action@1.3.5
30
+ - @modern-js/plugin-fast-refresh@1.2.3
31
+ - @modern-js/server@1.4.9
32
+
3
33
  ## 1.4.6
4
34
 
5
35
  ### Patch Changes
@@ -14,15 +14,15 @@ export const buildServerConfig = async ({
14
14
  configFile,
15
15
  options
16
16
  }) => {
17
- const helperCode = `
18
- export const defineConfig = (config) => config;
19
- `;
20
17
  const configFilePath = await getServerConfig(appDirectory, configFile);
21
18
 
22
19
  const getOutputFile = filepath => path.resolve(distDirectory, `${filepath.replace(new RegExp(CONFIG_FILE_EXTENSIONS.join('|')), '')}.js`);
23
20
 
24
21
  if (configFilePath) {
25
22
  const configHelperFilePath = path.join(distDirectory, './config-helper.js');
23
+ const helperCode = `
24
+ export const defineConfig = (config) => config;
25
+ `;
26
26
  await fs.writeFile(configHelperFilePath, helperCode);
27
27
  await bundle(configFilePath, _objectSpread(_objectSpread({}, options), {}, {
28
28
  getOutputFile,
@@ -31,15 +31,15 @@ const buildServerConfig = async ({
31
31
  configFile,
32
32
  options
33
33
  }) => {
34
- const helperCode = `
35
- export const defineConfig = (config) => config;
36
- `;
37
34
  const configFilePath = await (0, _utils.getServerConfig)(appDirectory, configFile);
38
35
 
39
36
  const getOutputFile = filepath => path.resolve(distDirectory, `${filepath.replace(new RegExp(_utils.CONFIG_FILE_EXTENSIONS.join('|')), '')}.js`);
40
37
 
41
38
  if (configFilePath) {
42
39
  const configHelperFilePath = path.join(distDirectory, './config-helper.js');
40
+ const helperCode = `
41
+ export const defineConfig = (config) => config;
42
+ `;
43
43
  await _utils.fs.writeFile(configHelperFilePath, helperCode);
44
44
  await (0, _nodeBundleRequire.bundle)(configFilePath, _objectSpread(_objectSpread({}, options), {}, {
45
45
  getOutputFile,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.4.7-canary.1",
14
+ "version": "1.5.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -57,24 +57,24 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@babel/runtime": "^7",
60
- "@modern-js/core": "^1.6.1",
60
+ "@modern-js/core": "^1.7.0",
61
61
  "@modern-js/i18n-cli-language-detector": "^1.2.1",
62
- "@modern-js/new-action": "^1.3.3",
63
- "@modern-js/node-bundle-require": "^1.2.3",
62
+ "@modern-js/new-action": "^1.3.5",
63
+ "@modern-js/node-bundle-require": "^1.3.0",
64
64
  "@modern-js/plugin": "^1.3.2",
65
- "@modern-js/plugin-analyze": "^1.3.5",
65
+ "@modern-js/plugin-analyze": "^1.3.6",
66
66
  "@modern-js/plugin-fast-refresh": "^1.2.3",
67
- "@modern-js/plugin-i18n": "^1.2.1",
68
- "@modern-js/prod-server": "^1.0.6",
67
+ "@modern-js/plugin-i18n": "^1.2.3",
68
+ "@modern-js/prod-server": "^1.1.0",
69
69
  "@modern-js/server": "^1.4.9",
70
- "@modern-js/types": "^1.3.6",
71
- "@modern-js/utils": "^1.3.7",
72
- "@modern-js/webpack": "^1.5.3",
70
+ "@modern-js/types": "^1.4.0",
71
+ "@modern-js/utils": "^1.4.0",
72
+ "@modern-js/webpack": "^1.5.4",
73
73
  "inquirer": "^8.2.0",
74
74
  "webpack": "^5.71.0"
75
75
  },
76
76
  "devDependencies": {
77
- "@modern-js/server-core": "^1.2.4",
77
+ "@modern-js/server-core": "^1.3.0",
78
78
  "@scripts/build": "0.0.0",
79
79
  "@scripts/jest-config": "0.0.0",
80
80
  "@types/inquirer": "^8.2.0",
@@ -88,8 +88,7 @@
88
88
  "sideEffects": false,
89
89
  "publishConfig": {
90
90
  "registry": "https://registry.npmjs.org/",
91
- "access": "public",
92
- "types": "./dist/types/index.d.ts"
91
+ "access": "public"
93
92
  },
94
93
  "scripts": {
95
94
  "new": "modern new",