umi 4.0.80 → 4.0.82
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/cli.js +4 -5
- package/dist/cli/forkedDev.js +1 -2
- package/package.json +10 -10
- package/dist/cli/node.d.ts +0 -4
- package/dist/cli/node.js +0 -62
package/dist/cli/cli.js
CHANGED
|
@@ -26,12 +26,11 @@ var import_utils = require("@umijs/utils");
|
|
|
26
26
|
var import_constants = require("../constants");
|
|
27
27
|
var import_service = require("../service/service");
|
|
28
28
|
var import_dev = require("./dev");
|
|
29
|
-
|
|
30
|
-
(0, import_node.catchUnhandledRejection)();
|
|
29
|
+
(0, import_utils.catchUnhandledRejection)();
|
|
31
30
|
async function run(opts) {
|
|
32
|
-
(0,
|
|
33
|
-
(0,
|
|
34
|
-
(0,
|
|
31
|
+
(0, import_utils.checkVersion)(import_constants.MIN_NODE_VERSION);
|
|
32
|
+
(0, import_utils.checkLocal)();
|
|
33
|
+
(0, import_utils.setNodeTitle)(import_constants.FRAMEWORK_NAME);
|
|
35
34
|
(0, import_utils.setNoDeprecation)();
|
|
36
35
|
const args = (0, import_utils.yParser)(process.argv.slice(2), {
|
|
37
36
|
alias: {
|
package/dist/cli/forkedDev.js
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
var import_utils = require("@umijs/utils");
|
|
3
3
|
var import_constants = require("../constants");
|
|
4
4
|
var import_service = require("../service/service");
|
|
5
|
-
|
|
6
|
-
(0, import_node.setNodeTitle)(`${import_constants.FRAMEWORK_NAME}-dev`);
|
|
5
|
+
(0, import_utils.setNodeTitle)(`${import_constants.FRAMEWORK_NAME}-dev`);
|
|
7
6
|
(0, import_utils.setNoDeprecation)();
|
|
8
7
|
(async () => {
|
|
9
8
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "umi",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.82",
|
|
4
4
|
"description": "umi",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/umi#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"@babel/runtime": "7.21.0",
|
|
35
35
|
"prettier-plugin-organize-imports": "^3.2.2",
|
|
36
36
|
"prettier-plugin-packagejson": "2.4.3",
|
|
37
|
-
"@umijs/bundler-utils": "4.0.
|
|
38
|
-
"@umijs/
|
|
39
|
-
"@umijs/
|
|
40
|
-
"@umijs/
|
|
41
|
-
"@umijs/server": "4.0.
|
|
42
|
-
"@umijs/
|
|
43
|
-
"@umijs/
|
|
44
|
-
"@umijs/
|
|
45
|
-
"@umijs/
|
|
37
|
+
"@umijs/bundler-utils": "4.0.82",
|
|
38
|
+
"@umijs/lint": "4.0.82",
|
|
39
|
+
"@umijs/preset-umi": "4.0.82",
|
|
40
|
+
"@umijs/renderer-react": "4.0.82",
|
|
41
|
+
"@umijs/server": "4.0.82",
|
|
42
|
+
"@umijs/bundler-webpack": "4.0.82",
|
|
43
|
+
"@umijs/core": "4.0.82",
|
|
44
|
+
"@umijs/utils": "4.0.82",
|
|
45
|
+
"@umijs/test": "4.0.82"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=14"
|
package/dist/cli/node.d.ts
DELETED
package/dist/cli/node.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/cli/node.ts
|
|
20
|
-
var node_exports = {};
|
|
21
|
-
__export(node_exports, {
|
|
22
|
-
catchUnhandledRejection: () => catchUnhandledRejection,
|
|
23
|
-
checkLocal: () => checkLocal,
|
|
24
|
-
checkVersion: () => checkVersion,
|
|
25
|
-
setNodeTitle: () => setNodeTitle
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(node_exports);
|
|
28
|
-
var import_utils = require("@umijs/utils");
|
|
29
|
-
var import_constants = require("../constants");
|
|
30
|
-
var ver = parseInt(process.version.slice(1));
|
|
31
|
-
function checkVersion() {
|
|
32
|
-
if (ver < import_constants.MIN_NODE_VERSION || ver === 15 || ver === 17) {
|
|
33
|
-
import_utils.logger.error(
|
|
34
|
-
`Your node version ${ver} is not supported, please upgrade to ${import_constants.MIN_NODE_VERSION} or above except 15 or 17.`
|
|
35
|
-
);
|
|
36
|
-
process.exit(1);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function checkLocal() {
|
|
40
|
-
if ((0, import_utils.isLocalDev)()) {
|
|
41
|
-
import_utils.logger.info("@local");
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function setNodeTitle(name) {
|
|
45
|
-
if (process.title === "node") {
|
|
46
|
-
process.title = name || import_constants.FRAMEWORK_NAME;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function catchUnhandledRejection() {
|
|
50
|
-
if (ver <= 14) {
|
|
51
|
-
process.on("unhandledRejection", (err) => {
|
|
52
|
-
throw err;
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
-
0 && (module.exports = {
|
|
58
|
-
catchUnhandledRejection,
|
|
59
|
-
checkLocal,
|
|
60
|
-
checkVersion,
|
|
61
|
-
setNodeTitle
|
|
62
|
-
});
|