umi 4.0.0-beta.5 → 4.0.0-beta.6
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/cli/node.js +1 -1
- package/dist/service/service.js +1 -4
- package/index.d.ts +1 -1
- package/package.json +5 -5
package/dist/cli/node.js
CHANGED
package/dist/service/service.js
CHANGED
|
@@ -19,10 +19,7 @@ class Service extends core_1.Service {
|
|
|
19
19
|
constructor(opts) {
|
|
20
20
|
process.env.UMI_DIR = (0, path_1.dirname)(require.resolve('../../package'));
|
|
21
21
|
const cwd = (0, cwd_1.getCwd)();
|
|
22
|
-
super(Object.assign(Object.assign({}, opts), { env: process.env.NODE_ENV, cwd, defaultConfigFiles: constants_1.DEFAULT_CONFIG_FILES, frameworkName: constants_1.FRAMEWORK_NAME, presets: [
|
|
23
|
-
require.resolve('@umijs/preset-built-in'),
|
|
24
|
-
...((opts === null || opts === void 0 ? void 0 : opts.presets) || []),
|
|
25
|
-
], plugins: [
|
|
22
|
+
super(Object.assign(Object.assign({}, opts), { env: process.env.NODE_ENV, cwd, defaultConfigFiles: constants_1.DEFAULT_CONFIG_FILES, frameworkName: constants_1.FRAMEWORK_NAME, presets: [require.resolve('@umijs/preset-umi'), ...((opts === null || opts === void 0 ? void 0 : opts.presets) || [])], plugins: [
|
|
26
23
|
(0, fs_1.existsSync)((0, path_1.join)(cwd, 'plugin.ts')) && (0, path_1.join)(cwd, 'plugin.ts'),
|
|
27
24
|
(0, fs_1.existsSync)((0, path_1.join)(cwd, 'plugin.js')) && (0, path_1.join)(cwd, 'plugin.js'),
|
|
28
25
|
].filter(Boolean) }));
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "umi",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.6",
|
|
4
4
|
"description": "umi",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "index.esm.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@umijs/core": "4.0.0-beta.
|
|
39
|
-
"@umijs/preset-
|
|
40
|
-
"@umijs/renderer-react": "4.0.0-beta.
|
|
41
|
-
"@umijs/utils": "4.0.0-beta.
|
|
38
|
+
"@umijs/core": "4.0.0-beta.6",
|
|
39
|
+
"@umijs/preset-umi": "4.0.0-beta.6",
|
|
40
|
+
"@umijs/renderer-react": "4.0.0-beta.6",
|
|
41
|
+
"@umijs/utils": "4.0.0-beta.6",
|
|
42
42
|
"v8-compile-cache": "2.3.0"
|
|
43
43
|
}
|
|
44
44
|
}
|