@modern-js/app-tools 1.6.1 → 1.6.2
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,27 @@
|
|
|
1
1
|
# @modern-js/app-tools
|
|
2
2
|
|
|
3
|
+
## 1.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8cf0ca21: fix: build commands not work
|
|
8
|
+
- Updated dependencies [4697d1db]
|
|
9
|
+
- Updated dependencies [0ee4bb4e]
|
|
10
|
+
- Updated dependencies [a4c5fe78]
|
|
11
|
+
- Updated dependencies [6fa74d5f]
|
|
12
|
+
- Updated dependencies [a22d3ea8]
|
|
13
|
+
- Updated dependencies [5c00db22]
|
|
14
|
+
- Updated dependencies [92f4909e]
|
|
15
|
+
- @modern-js/webpack@1.6.0
|
|
16
|
+
- @modern-js/core@1.10.0
|
|
17
|
+
- @modern-js/utils@1.7.0
|
|
18
|
+
- @modern-js/prod-server@1.1.3
|
|
19
|
+
- @modern-js/types@1.5.2
|
|
20
|
+
- @modern-js/server@1.4.12
|
|
21
|
+
- @modern-js/plugin-analyze@1.4.1
|
|
22
|
+
- @modern-js/plugin-fast-refresh@1.2.4
|
|
23
|
+
- @modern-js/node-bundle-require@1.3.2
|
|
24
|
+
|
|
3
25
|
## 1.6.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -13,7 +13,7 @@ import { buildServerConfig, emitResolvedConfig } from "../utils/config";
|
|
|
13
13
|
const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024;
|
|
14
14
|
const WARN_AFTER_CHUNK_GZIP_SIZE = 1024 * 1024;
|
|
15
15
|
export const build = async (api, options) => {
|
|
16
|
-
|
|
16
|
+
let resolvedConfig = api.useResolvedConfigContext();
|
|
17
17
|
const appContext = api.useAppContext();
|
|
18
18
|
const hookRunners = api.useHookRunners();
|
|
19
19
|
const {
|
|
@@ -92,9 +92,10 @@ export const build = async (api, options) => {
|
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
manager.run(() => {
|
|
95
|
-
|
|
95
|
+
resolvedConfig = _objectSpread(_objectSpread({}, resolvedConfig), {}, {
|
|
96
96
|
cliOptions: options
|
|
97
|
-
})
|
|
97
|
+
});
|
|
98
|
+
ResolvedConfigContext.set(resolvedConfig);
|
|
98
99
|
});
|
|
99
100
|
const {
|
|
100
101
|
distDirectory,
|
|
@@ -26,7 +26,7 @@ const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024;
|
|
|
26
26
|
const WARN_AFTER_CHUNK_GZIP_SIZE = 1024 * 1024;
|
|
27
27
|
|
|
28
28
|
const build = async (api, options) => {
|
|
29
|
-
|
|
29
|
+
let resolvedConfig = api.useResolvedConfigContext();
|
|
30
30
|
const appContext = api.useAppContext();
|
|
31
31
|
const hookRunners = api.useHookRunners();
|
|
32
32
|
const {
|
|
@@ -108,9 +108,11 @@ const build = async (api, options) => {
|
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
_core.manager.run(() => {
|
|
111
|
-
|
|
111
|
+
resolvedConfig = _objectSpread(_objectSpread({}, resolvedConfig), {}, {
|
|
112
112
|
cliOptions: options
|
|
113
|
-
})
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
_core.ResolvedConfigContext.set(resolvedConfig);
|
|
114
116
|
});
|
|
115
117
|
|
|
116
118
|
const {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.6.
|
|
14
|
+
"version": "1.6.2",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@babel/runtime": "^7",
|
|
60
|
-
"@modern-js/core": "^1.
|
|
60
|
+
"@modern-js/core": "^1.10.0",
|
|
61
61
|
"@modern-js/i18n-cli-language-detector": "^1.2.2",
|
|
62
62
|
"@modern-js/new-action": "^1.3.7",
|
|
63
63
|
"@modern-js/node-bundle-require": "^1.3.2",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"@modern-js/plugin-analyze": "^1.4.1",
|
|
66
66
|
"@modern-js/plugin-fast-refresh": "^1.2.4",
|
|
67
67
|
"@modern-js/plugin-i18n": "^1.2.4",
|
|
68
|
-
"@modern-js/prod-server": "^1.1.
|
|
69
|
-
"@modern-js/server": "^1.4.
|
|
70
|
-
"@modern-js/types": "^1.5.
|
|
71
|
-
"@modern-js/utils": "^1.
|
|
72
|
-
"@modern-js/webpack": "^1.
|
|
68
|
+
"@modern-js/prod-server": "^1.1.3",
|
|
69
|
+
"@modern-js/server": "^1.4.12",
|
|
70
|
+
"@modern-js/types": "^1.5.2",
|
|
71
|
+
"@modern-js/utils": "^1.7.0",
|
|
72
|
+
"@modern-js/webpack": "^1.6.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@modern-js/server-core": "1.3.
|
|
75
|
+
"@modern-js/server-core": "1.3.3",
|
|
76
76
|
"@scripts/build": "0.0.0",
|
|
77
77
|
"@scripts/jest-config": "0.0.0",
|
|
78
78
|
"@types/jest": "^26",
|