@umijs/utils 4.0.0-canary.20220707.1 → 4.0.0-canary.20220718.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/dist/BaseGenerator/BaseGenerator.d.ts +1 -0
- package/dist/BaseGenerator/BaseGenerator.d.ts.map +1 -0
- package/dist/BaseGenerator/generateFile.d.ts +1 -0
- package/dist/BaseGenerator/generateFile.d.ts.map +1 -0
- package/dist/Generator/Generator.d.ts +1 -0
- package/dist/Generator/Generator.d.ts.map +1 -0
- package/dist/getCorejsVersion.d.ts +1 -0
- package/dist/getCorejsVersion.d.ts.map +1 -0
- package/dist/getGitInfo.d.ts +1 -0
- package/dist/getGitInfo.d.ts.map +1 -0
- package/dist/importLazy.d.ts +1 -0
- package/dist/importLazy.d.ts.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -1
- package/dist/installDeps.d.ts +1 -0
- package/dist/installDeps.d.ts.map +1 -0
- package/dist/isLocalDev.d.ts +1 -0
- package/dist/isLocalDev.d.ts.map +1 -0
- package/dist/isStyleFile.d.ts +1 -0
- package/dist/isStyleFile.d.ts.map +1 -0
- package/dist/logger.d.ts +2 -1
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +35 -24
- package/dist/npmClient.d.ts +1 -0
- package/dist/npmClient.d.ts.map +1 -0
- package/dist/printHelp.d.ts +3 -0
- package/dist/printHelp.d.ts.map +1 -0
- package/dist/printHelp.js +44 -0
- package/dist/randomColor/randomColor.d.ts +1 -0
- package/dist/randomColor/randomColor.d.ts.map +1 -0
- package/dist/register.d.ts +1 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/tryPaths.d.ts +1 -0
- package/dist/tryPaths.d.ts.map +1 -0
- package/dist/updatePackageJSON.d.ts +1 -0
- package/dist/updatePackageJSON.d.ts.map +1 -0
- package/dist/winPath.d.ts +1 -0
- package/dist/winPath.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseGenerator.d.ts","sourceRoot":"","sources":["../../src/BaseGenerator/BaseGenerator.ts"],"names":[],"mappings":"AAGA,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAC7C,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC;CACpC;AAED,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC;gBAEtB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,KAAK;IAQ7D,SAAS;IAIH,OAAO;CAyBd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateFile.d.ts","sourceRoot":"","sources":["../../src/BaseGenerator/generateFile.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAG7C,QAAA,MAAM,YAAY;UAOV,MAAM;YACJ,MAAM;;WAEP,GAAG;;mBAYX,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Generator.d.ts","sourceRoot":"","sources":["../../src/Generator/Generator.ts"],"names":[],"mappings":"AAOA,OAAO,OAAO,MAAM,6BAA6B,CAAC;AAElD,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC;CACzB;AAED,cAAM,SAAS;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC;gBAED,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK;IAM9B,GAAG;IAMT,SAAS;IAIH,OAAO;IAEb,OAAO,CAAC,IAAI,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;IAUvE,aAAa,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;CAuBtE;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCorejsVersion.d.ts","sourceRoot":"","sources":["../src/getCorejsVersion.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,YAAa,MAAM,QAK/C,CAAC"}
|
package/dist/getGitInfo.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGitInfo.d.ts","sourceRoot":"","sources":["../src/getGitInfo.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,UAAU,QAAa,QAAQ,QAAQ,CAa5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/dist/importLazy.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importLazy.d.ts","sourceRoot":"","sources":["../src/importLazy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,wBAAgB,UAAU,CACxB,UAAU,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,GAClC,GAAG,CAKL"}
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import Generator from './Generator/Generator';
|
|
|
25
25
|
import getGitInfo from './getGitInfo';
|
|
26
26
|
import installDeps from './installDeps';
|
|
27
27
|
import * as logger from './logger';
|
|
28
|
+
import * as printHelp from './printHelp';
|
|
28
29
|
import updatePackageJSON from './updatePackageJSON';
|
|
29
30
|
export * from './getCorejsVersion';
|
|
30
31
|
export * from './importLazy';
|
|
@@ -35,4 +36,5 @@ export * from './randomColor/randomColor';
|
|
|
35
36
|
export * as register from './register';
|
|
36
37
|
export * from './tryPaths';
|
|
37
38
|
export * from './winPath';
|
|
38
|
-
export { address, axios, chalk, cheerio, chokidar, crossSpawn, debug, deepmerge, execa, fsExtra, glob, Generator, BaseGenerator, generateFile, installDeps, lodash, logger, Mustache, pkgUp, portfinder, prompts, resolve, rimraf, semver, stripAnsi, updatePackageJSON, yParser, getGitInfo, };
|
|
39
|
+
export { address, axios, chalk, cheerio, chokidar, crossSpawn, debug, deepmerge, execa, fsExtra, glob, Generator, BaseGenerator, generateFile, installDeps, lodash, logger, Mustache, pkgUp, portfinder, prompts, resolve, rimraf, semver, stripAnsi, updatePackageJSON, yParser, getGitInfo, printHelp, };
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAC1C,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAC1C,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,IAAI,MAAM,kBAAkB,CAAC;AAEpC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAC1C,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAC1C,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,OAAO,MAAM,0BAA0B,CAAC;AAC/C,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,YAAY,MAAM,8BAA8B,CAAC;AACxD,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,OAAO,EACL,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,UAAU,EACV,KAAK,EACL,SAAS,EACT,KAAK,EACL,OAAO,EACP,IAAI,EACJ,SAAS,EACT,aAAa,EACb,YAAY,EACZ,WAAW,EAEX,MAAM,EACN,MAAM,EACN,QAAQ,EACR,KAAK,EACL,UAAU,EACV,OAAO,EACP,OAAO,EACP,MAAM,EACN,MAAM,EACN,SAAS,EACT,iBAAiB,EACjB,OAAO,EACP,UAAU,EACV,SAAS,GACV,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
29
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.getGitInfo = exports.yParser = exports.updatePackageJSON = exports.stripAnsi = exports.semver = exports.rimraf = exports.resolve = exports.prompts = exports.portfinder = exports.pkgUp = exports.Mustache = exports.logger = exports.lodash = exports.installDeps = exports.generateFile = exports.BaseGenerator = exports.Generator = exports.glob = exports.fsExtra = exports.execa = exports.deepmerge = exports.debug = exports.crossSpawn = exports.chokidar = exports.cheerio = exports.chalk = exports.axios = exports.address = exports.register = void 0;
|
|
32
|
+
exports.printHelp = exports.getGitInfo = exports.yParser = exports.updatePackageJSON = exports.stripAnsi = exports.semver = exports.rimraf = exports.resolve = exports.prompts = exports.portfinder = exports.pkgUp = exports.Mustache = exports.logger = exports.lodash = exports.installDeps = exports.generateFile = exports.BaseGenerator = exports.Generator = exports.glob = exports.fsExtra = exports.execa = exports.deepmerge = exports.debug = exports.crossSpawn = exports.chokidar = exports.cheerio = exports.chalk = exports.axios = exports.address = exports.register = void 0;
|
|
33
33
|
const chokidar = __importStar(require("chokidar"));
|
|
34
34
|
exports.chokidar = chokidar;
|
|
35
35
|
const address_1 = __importDefault(require("../compiled/address"));
|
|
@@ -85,6 +85,8 @@ const installDeps_1 = __importDefault(require("./installDeps"));
|
|
|
85
85
|
exports.installDeps = installDeps_1.default;
|
|
86
86
|
const logger = __importStar(require("./logger"));
|
|
87
87
|
exports.logger = logger;
|
|
88
|
+
const printHelp = __importStar(require("./printHelp"));
|
|
89
|
+
exports.printHelp = printHelp;
|
|
88
90
|
const updatePackageJSON_1 = __importDefault(require("./updatePackageJSON"));
|
|
89
91
|
exports.updatePackageJSON = updatePackageJSON_1.default;
|
|
90
92
|
__exportStar(require("./getCorejsVersion"), exports);
|
package/dist/installDeps.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"installDeps.d.ts","sourceRoot":"","sources":["../src/installDeps.ts"],"names":[],"mappings":"AAIA,UAAU,YAAY;IACpB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,iBAAS,WAAW,CAAC,EACnB,IAAI,EACJ,GAAmB,GACpB,EAAE;IACD,IAAI,EAAE,YAAY,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,QAyCA;AACD,eAAe,WAAW,CAAC"}
|
package/dist/isLocalDev.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isLocalDev.d.ts","sourceRoot":"","sources":["../src/isLocalDev.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,UAAU,sBAGtB,CAAC"}
|
package/dist/isStyleFile.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isStyleFile.d.ts","sourceRoot":"","sources":["../src/isStyleFile.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,UAOhC,CAAC;AAEF,eAAO,MAAM,WAAW;;;aAQvB,CAAC"}
|
package/dist/logger.d.ts
CHANGED
|
@@ -16,4 +16,5 @@ export declare function info(...message: any[]): void;
|
|
|
16
16
|
export declare function event(...message: any[]): void;
|
|
17
17
|
export declare function debug(...message: any[]): void;
|
|
18
18
|
export declare function fatal(...message: any[]): void;
|
|
19
|
-
export declare function getLatestLogFilePath(): string;
|
|
19
|
+
export declare function getLatestLogFilePath(): string | null;
|
|
20
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,QAAQ;;;;;;;;;CASpB,CAAC;AAuCF,wBAAgB,IAAI,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGrC;AAED,wBAAgB,KAAK,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGtC;AAED,wBAAgB,IAAI,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGrC;AAED,wBAAgB,KAAK,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGtC;AAED,wBAAgB,IAAI,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGrC;AAED,wBAAgB,KAAK,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGtC;AAED,wBAAgB,KAAK,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAKtC;AAED,wBAAgB,KAAK,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,QAGtC;AAED,wBAAgB,oBAAoB,kBAEnC"}
|
package/dist/logger.js
CHANGED
|
@@ -5,33 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getLatestLogFilePath = exports.fatal = exports.debug = exports.event = exports.info = exports.ready = exports.warn = exports.error = exports.wait = exports.prefixes = void 0;
|
|
7
7
|
const path_1 = require("path");
|
|
8
|
-
const pino_1 = __importDefault(require("pino"));
|
|
9
8
|
const chalk_1 = __importDefault(require("../compiled/chalk"));
|
|
10
9
|
const fs_extra_1 = __importDefault(require("../compiled/fs-extra"));
|
|
10
|
+
const importLazy_1 = require("./importLazy");
|
|
11
|
+
const enableFSLogger = process.env.FS_LOGGER !== 'none' && !process.versions.webcontainer;
|
|
11
12
|
const loggerDir = (0, path_1.join)(process.cwd(), 'node_modules/.cache/logger');
|
|
12
13
|
const loggerPath = (0, path_1.join)(loggerDir, 'umi.log');
|
|
13
|
-
fs_extra_1.default.mkdirpSync(loggerDir);
|
|
14
|
-
const customLevels = {
|
|
15
|
-
ready: 31,
|
|
16
|
-
event: 32,
|
|
17
|
-
wait: 55,
|
|
18
|
-
// 虽然这里设置了 debug 为 30,但日志中还是 20,符合预期
|
|
19
|
-
// 这里不加会不生成到 umi.log,transport 的 level 配置没有生效,原因不明
|
|
20
|
-
debug: 30,
|
|
21
|
-
};
|
|
22
|
-
const logger = (0, pino_1.default)({
|
|
23
|
-
customLevels,
|
|
24
|
-
}, pino_1.default.transport({
|
|
25
|
-
targets: [
|
|
26
|
-
{
|
|
27
|
-
target: require.resolve('pino/file'),
|
|
28
|
-
options: {
|
|
29
|
-
destination: loggerPath,
|
|
30
|
-
},
|
|
31
|
-
level: 'trace',
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
}));
|
|
35
14
|
exports.prefixes = {
|
|
36
15
|
wait: chalk_1.default.cyan('wait') + ' -',
|
|
37
16
|
error: chalk_1.default.red('error') + ' -',
|
|
@@ -42,6 +21,38 @@ exports.prefixes = {
|
|
|
42
21
|
event: chalk_1.default.magenta('event') + ' -',
|
|
43
22
|
debug: chalk_1.default.gray('debug') + ' -',
|
|
44
23
|
};
|
|
24
|
+
let logger;
|
|
25
|
+
if (enableFSLogger) {
|
|
26
|
+
const { default: pino } = (0, importLazy_1.importLazy)(require.resolve('pino'));
|
|
27
|
+
fs_extra_1.default.mkdirpSync(loggerDir);
|
|
28
|
+
const customLevels = {
|
|
29
|
+
ready: 31,
|
|
30
|
+
event: 32,
|
|
31
|
+
wait: 55,
|
|
32
|
+
// 虽然这里设置了 debug 为 30,但日志中还是 20,符合预期
|
|
33
|
+
// 这里不加会不生成到 umi.log,transport 的 level 配置没有生效,原因不明
|
|
34
|
+
debug: 30,
|
|
35
|
+
};
|
|
36
|
+
logger = pino({
|
|
37
|
+
customLevels,
|
|
38
|
+
}, pino.transport({
|
|
39
|
+
targets: [
|
|
40
|
+
{
|
|
41
|
+
target: require.resolve('pino/file'),
|
|
42
|
+
options: {
|
|
43
|
+
destination: loggerPath,
|
|
44
|
+
},
|
|
45
|
+
level: 'trace',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
logger = {};
|
|
52
|
+
Object.keys(exports.prefixes).forEach((key) => {
|
|
53
|
+
logger[key] = () => { };
|
|
54
|
+
});
|
|
55
|
+
}
|
|
45
56
|
function wait(...message) {
|
|
46
57
|
console.log(exports.prefixes.wait, ...message);
|
|
47
58
|
logger.wait(message[0]);
|
|
@@ -85,6 +96,6 @@ function fatal(...message) {
|
|
|
85
96
|
}
|
|
86
97
|
exports.fatal = fatal;
|
|
87
98
|
function getLatestLogFilePath() {
|
|
88
|
-
return loggerPath;
|
|
99
|
+
return enableFSLogger ? loggerPath : null;
|
|
89
100
|
}
|
|
90
101
|
exports.getLatestLogFilePath = getLatestLogFilePath;
|
package/dist/npmClient.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npmClient.d.ts","sourceRoot":"","sources":["../src/npmClient.ts"],"names":[],"mappings":"AAGA,oBAAY,SAAS,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAClE,eAAO,MAAM,UAAU,UAA0C,CAAC;AAClE,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AACD,eAAO,MAAM,YAAY,SAAU;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,KAAG,SAqBpD,CAAC;AAEF,eAAO,MAAM,oBAAoB;eAIpB,SAAS;;MAElB,IASH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"printHelp.d.ts","sourceRoot":"","sources":["../src/printHelp.ts"],"names":[],"mappings":"AAKA,wBAAgB,IAAI,SAUnB;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,QAG/B"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.runtime = exports.exit = void 0;
|
|
27
|
+
const logger = __importStar(require("./logger"));
|
|
28
|
+
// TODO: 先注释,因为这里要考虑比如 @alipay/bigfish 不应该走这个提示
|
|
29
|
+
// const FEEDBACK_MESSAGE = '如果你需要进交流群,请访问 https://fb.umijs.org';
|
|
30
|
+
function exit() {
|
|
31
|
+
const loggerPath = logger.getLatestLogFilePath();
|
|
32
|
+
if (loggerPath) {
|
|
33
|
+
logger.fatal('A complete log of this run can be found in:');
|
|
34
|
+
logger.fatal(loggerPath);
|
|
35
|
+
}
|
|
36
|
+
logger.fatal('Consider reporting a GitHub issue on https://github.com/umijs/umi/issues');
|
|
37
|
+
// logger.fatal(FEEDBACK_MESSAGE);
|
|
38
|
+
}
|
|
39
|
+
exports.exit = exit;
|
|
40
|
+
function runtime(e) {
|
|
41
|
+
logger.error(e);
|
|
42
|
+
// logger.fatal(FEEDBACK_MESSAGE);
|
|
43
|
+
}
|
|
44
|
+
exports.runtime = runtime;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"randomColor.d.ts","sourceRoot":"","sources":["../../src/randomColor/randomColor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,sBAAsB,CAAC;AAKzC,wBAAgB,WAAW,CAAC,UAAU,GAAE,MAAY,EAAE,KAAK,GAAE,MAAa;;;;GASzE"}
|
package/dist/register.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AA8BA,wBAAgB,QAAQ,CAAC,IAAI,EAAE;IAAE,WAAW,EAAE,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,QAanE;AAED,wBAAgB,QAAQ,aAEvB;AAED,wBAAgB,UAAU,SAEzB;AAED,wBAAgB,OAAO,SAGtB"}
|
package/dist/tryPaths.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tryPaths.d.ts","sourceRoot":"","sources":["../src/tryPaths.ts"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,sBAIvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatePackageJSON.d.ts","sourceRoot":"","sources":["../src/updatePackageJSON.ts"],"names":[],"mappings":"AAKA,iBAAS,iBAAiB,CAAC,EACzB,IAAI,EACJ,GAAmB,GACpB,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,QAYA;AACD,eAAe,iBAAiB,CAAC"}
|
package/dist/winPath.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"winPath.d.ts","sourceRoot":"","sources":["../src/winPath.ts"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,UAMnC"}
|
package/package.json
CHANGED