umi 4.0.0-canary.20220414.1 → 4.0.0-canary.20220421.1
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 +2 -2
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +1 -2
- package/package.json +9 -9
package/dist/cli/node.js
CHANGED
|
@@ -5,8 +5,8 @@ const utils_1 = require("@umijs/utils");
|
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
function checkVersion() {
|
|
7
7
|
const v = parseInt(process.version.slice(1));
|
|
8
|
-
if (v < constants_1.MIN_NODE_VERSION || v ===
|
|
9
|
-
utils_1.logger.error(`Your node version ${v} is not supported, please upgrade to ${constants_1.MIN_NODE_VERSION} or above except
|
|
8
|
+
if (v < constants_1.MIN_NODE_VERSION || v === 15 || v === 17) {
|
|
9
|
+
utils_1.logger.error(`Your node version ${v} is not supported, please upgrade to ${constants_1.MIN_NODE_VERSION} or above except 15 or 17.`);
|
|
10
10
|
process.exit(1);
|
|
11
11
|
}
|
|
12
12
|
}
|
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FRAMEWORK_NAME = exports.DEFAULT_CONFIG_FILES = exports.DEV_COMMAND = exports.
|
|
3
|
+
exports.FRAMEWORK_NAME = exports.DEFAULT_CONFIG_FILES = exports.DEV_COMMAND = exports.MIN_NODE_VERSION = void 0;
|
|
4
4
|
exports.MIN_NODE_VERSION = 14;
|
|
5
|
-
exports.EXCLUDE_NODE_VERSION = 15;
|
|
6
5
|
exports.DEV_COMMAND = 'dev';
|
|
7
6
|
exports.DEFAULT_CONFIG_FILES = [
|
|
8
7
|
'.umirc.ts',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "umi",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.20220421.1",
|
|
4
4
|
"description": "umi",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi-next/tree/master/packages/umi#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi-next/issues",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"test": "jest -c ../../jest.turbo.config.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@umijs/bundler-utils": "4.0.0-canary.
|
|
41
|
-
"@umijs/bundler-webpack": "4.0.0-canary.
|
|
42
|
-
"@umijs/core": "4.0.0-canary.
|
|
43
|
-
"@umijs/lint": "4.0.0-canary.
|
|
44
|
-
"@umijs/preset-umi": "4.0.0-canary.
|
|
45
|
-
"@umijs/renderer-react": "4.0.0-canary.
|
|
46
|
-
"@umijs/test": "4.0.0-canary.
|
|
47
|
-
"@umijs/utils": "4.0.0-canary.
|
|
40
|
+
"@umijs/bundler-utils": "4.0.0-canary.20220421.1",
|
|
41
|
+
"@umijs/bundler-webpack": "4.0.0-canary.20220421.1",
|
|
42
|
+
"@umijs/core": "4.0.0-canary.20220421.1",
|
|
43
|
+
"@umijs/lint": "4.0.0-canary.20220421.1",
|
|
44
|
+
"@umijs/preset-umi": "4.0.0-canary.20220421.1",
|
|
45
|
+
"@umijs/renderer-react": "4.0.0-canary.20220421.1",
|
|
46
|
+
"@umijs/test": "4.0.0-canary.20220421.1",
|
|
47
|
+
"@umijs/utils": "4.0.0-canary.20220421.1",
|
|
48
48
|
"prettier-plugin-organize-imports": "^2.3.4",
|
|
49
49
|
"prettier-plugin-packagejson": "^2.2.17"
|
|
50
50
|
},
|