umi 4.0.0-canary.20220628.2 → 4.0.0-canary.20220718.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.
Files changed (40) hide show
  1. package/dist/cli/cli.d.ts +1 -0
  2. package/dist/cli/cli.d.ts.map +1 -0
  3. package/dist/cli/cli.js +1 -2
  4. package/dist/cli/dev.d.ts +1 -0
  5. package/dist/cli/dev.d.ts.map +1 -0
  6. package/dist/cli/fork.d.ts +1 -0
  7. package/dist/cli/fork.d.ts.map +1 -0
  8. package/dist/cli/forkedDev.d.ts +1 -0
  9. package/dist/cli/forkedDev.d.ts.map +1 -0
  10. package/dist/cli/forkedDev.js +1 -2
  11. package/dist/cli/node.d.ts +1 -0
  12. package/dist/cli/node.d.ts.map +1 -0
  13. package/dist/client/plugin.d.ts +1 -0
  14. package/dist/client/plugin.d.ts.map +1 -0
  15. package/dist/client/utils.d.ts +1 -0
  16. package/dist/client/utils.d.ts.map +1 -0
  17. package/dist/constants.d.ts +1 -0
  18. package/dist/constants.d.ts.map +1 -0
  19. package/dist/defineConfig.d.ts +1 -0
  20. package/dist/defineConfig.d.ts.map +1 -0
  21. package/dist/defineMock.d.ts +1 -0
  22. package/dist/defineMock.d.ts.map +1 -0
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/pluginUtils.d.ts +1 -0
  26. package/dist/pluginUtils.d.ts.map +1 -0
  27. package/dist/service/cwd.d.ts +1 -0
  28. package/dist/service/cwd.d.ts.map +1 -0
  29. package/dist/service/requireHook.d.ts +2 -0
  30. package/dist/service/requireHook.d.ts.map +1 -0
  31. package/dist/service/requireHook.js +15 -0
  32. package/dist/service/service.d.ts +1 -0
  33. package/dist/service/service.d.ts.map +1 -0
  34. package/dist/service/service.js +5 -0
  35. package/dist/test.d.ts +2 -0
  36. package/dist/test.d.ts.map +1 -0
  37. package/dist/test.js +18 -6
  38. package/package.json +10 -10
  39. package/dist/cli/printHelp.d.ts +0 -1
  40. package/dist/cli/printHelp.js +0 -10
package/dist/cli/cli.d.ts CHANGED
@@ -3,3 +3,4 @@ interface IOpts {
3
3
  }
4
4
  export declare function run(opts?: IOpts): Promise<void>;
5
5
  export {};
6
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli/cli.ts"],"names":[],"mappings":"AAWA,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,wBAAsB,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,iBAoCrC"}
package/dist/cli/cli.js CHANGED
@@ -6,7 +6,6 @@ const constants_1 = require("../constants");
6
6
  const service_1 = require("../service/service");
7
7
  const dev_1 = require("./dev");
8
8
  const node_1 = require("./node");
9
- const printHelp_1 = require("./printHelp");
10
9
  async function run(opts) {
11
10
  (0, node_1.checkVersion)();
12
11
  (0, node_1.checkLocal)();
@@ -41,7 +40,7 @@ async function run(opts) {
41
40
  }
42
41
  catch (e) {
43
42
  utils_1.logger.fatal(e);
44
- (0, printHelp_1.printHelp)();
43
+ utils_1.printHelp.exit();
45
44
  process.exit(1);
46
45
  }
47
46
  }
package/dist/cli/dev.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export declare function dev(): void;
2
+ //# sourceMappingURL=dev.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/cli/dev.ts"],"names":[],"mappings":"AAEA,wBAAgB,GAAG,SAiBlB"}
@@ -4,3 +4,4 @@ interface IOpts {
4
4
  }
5
5
  export default function start({ scriptPath }: IOpts): import("child_process").ChildProcess;
6
6
  export {};
7
+ //# sourceMappingURL=fork.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fork.d.ts","sourceRoot":"","sources":["../../src/cli/fork.ts"],"names":[],"mappings":";AAIA,UAAU,KAAK;IACb,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,UAAU,EAAE,EAAE,KAAK,wCA0ClD"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=forkedDev.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forkedDev.d.ts","sourceRoot":"","sources":["../../src/cli/forkedDev.ts"],"names":[],"mappings":""}
@@ -4,7 +4,6 @@ const utils_1 = require("@umijs/utils");
4
4
  const constants_1 = require("../constants");
5
5
  const service_1 = require("../service/service");
6
6
  const node_1 = require("./node");
7
- const printHelp_1 = require("./printHelp");
8
7
  (0, node_1.setNodeTitle)(`${constants_1.FRAMEWORK_NAME}-dev`);
9
8
  (0, node_1.setNoDeprecation)();
10
9
  (async () => {
@@ -38,7 +37,7 @@ const printHelp_1 = require("./printHelp");
38
37
  }
39
38
  catch (e) {
40
39
  utils_1.logger.fatal(e);
41
- (0, printHelp_1.printHelp)();
40
+ utils_1.printHelp.exit();
42
41
  process.exit(1);
43
42
  }
44
43
  })();
@@ -2,3 +2,4 @@ export declare function checkVersion(): void;
2
2
  export declare function checkLocal(): void;
3
3
  export declare function setNodeTitle(name?: string): void;
4
4
  export declare function setNoDeprecation(): void;
5
+ //# sourceMappingURL=node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/cli/node.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,SAQ3B;AAED,wBAAgB,UAAU,SAIzB;AAED,wBAAgB,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM,QAIzC;AAED,wBAAgB,gBAAgB,SAK/B"}
@@ -32,3 +32,4 @@ export declare class PluginManager {
32
32
  }): PluginManager;
33
33
  }
34
34
  export {};
35
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/client/plugin.ts"],"names":[],"mappings":"AAEA,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,UAAU,OAAO;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B;AAED,qBAAa,aAAa;IACxB,IAAI,EAAE;QAAE,SAAS,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAC9B,KAAK,EAAE;QACL,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAM;gBACK,IAAI,EAAE;QAAE,SAAS,EAAE,MAAM,EAAE,CAAA;KAAE;IAIzC,QAAQ,CAAC,MAAM,EAAE,OAAO;IAaxB,QAAQ,CAAC,UAAU,EAAE,MAAM;IAqB3B,YAAY,CAAC,EACX,GAAG,EACH,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,KAAK,GACN,EAAE;QACD,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,gBAAgB,CAAC;QACvB,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;IAuFD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;QAAE,SAAS,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,OAAO,EAAE,CAAA;KAAE;CAShE"}
@@ -4,3 +4,4 @@ export declare function compose({ fns, args, }: {
4
4
  args?: object;
5
5
  }): any;
6
6
  export declare function isPromiseLike(obj: any): boolean;
7
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/client/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,QAErD;AAED,wBAAgB,OAAO,CAAC,EACtB,GAAG,EACH,IAAI,GACL,EAAE;IACD,GAAG,EAAE,CAAC,QAAQ,GAAG,GAAG,CAAC,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,OAMA;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,WAErC"}
@@ -2,3 +2,4 @@ export declare const MIN_NODE_VERSION = 14;
2
2
  export declare const DEV_COMMAND = "dev";
3
3
  export declare const DEFAULT_CONFIG_FILES: string[];
4
4
  export declare const FRAMEWORK_NAME = "umi";
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,WAAW,QAAQ,CAAC;AACjC,eAAO,MAAM,oBAAoB,UAKhC,CAAC;AACF,eAAO,MAAM,cAAc,QAAQ,CAAC"}
@@ -3,3 +3,4 @@ import type { IConfig } from '@umijs/preset-umi';
3
3
  declare type ConfigType = IConfigFromPlugins & IConfig;
4
4
  export declare function defineConfig(config: ConfigType): ConfigType;
5
5
  export {};
6
+ //# sourceMappingURL=defineConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defineConfig.d.ts","sourceRoot":"","sources":["../src/defineConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,aAAK,UAAU,GAAG,kBAAkB,GAAG,OAAO,CAAC;AAE/C,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAE3D"}
@@ -6,3 +6,4 @@ export declare function defineMock(mockData: {
6
6
  [key: string]: MockDeclare;
7
7
  };
8
8
  export {};
9
+ //# sourceMappingURL=defineMock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defineMock.d.ts","sourceRoot":"","sources":["../src/defineMock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAE9E,aAAK,WAAW,GACZ,MAAM,GACN,MAAM,GACN,IAAI,GACJ,SAAS,GACT,OAAO,GACP,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB,cAAc,CAAC;AAEnB,wBAAgB,UAAU,CAAC,QAAQ,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;CAAE;;EAElE"}
package/dist/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export { defineConfig } from './defineConfig';
4
4
  export { defineMock } from './defineMock';
5
5
  export * from './service/service';
6
6
  export declare type IApi = PluginAPI & IServicePluginAPI;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,oBAAY,IAAI,GAAG,SAAS,GAAG,iBAAiB,CAAC"}
@@ -3,3 +3,4 @@ import * as httpProxyMiddleware from '@umijs/bundler-webpack/compiled/http-proxy
3
3
  export { createServerRoutes } from '@umijs/server';
4
4
  export * from '@umijs/utils';
5
5
  export { httpProxyMiddleware, express };
6
+ //# sourceMappingURL=pluginUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pluginUtils.d.ts","sourceRoot":"","sources":["../src/pluginUtils.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,KAAK,mBAAmB,MAAM,uDAAuD,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare function getCwd(): string;
2
+ //# sourceMappingURL=cwd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cwd.d.ts","sourceRoot":"","sources":["../../src/service/cwd.ts"],"names":[],"mappings":"AAEA,wBAAgB,MAAM,WAOrB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=requireHook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requireHook.d.ts","sourceRoot":"","sources":["../../src/service/requireHook.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const path_1 = require("path");
4
+ const hookPropertyMap = new Map([
5
+ ['umi', (0, path_1.join)(__dirname, '../index.js')],
6
+ ['umi/plugin-utils', (0, path_1.join)(__dirname, '../../plugin-utils.js')],
7
+ ]);
8
+ const mod = require('module');
9
+ const resolveFilename = mod._resolveFilename;
10
+ mod._resolveFilename = function (request, parent, isMain, options) {
11
+ const hookResolved = hookPropertyMap.get(request);
12
+ if (hookResolved)
13
+ request = hookResolved;
14
+ return resolveFilename.call(mod, request, parent, isMain, options);
15
+ };
@@ -6,3 +6,4 @@ export declare class Service extends CoreService {
6
6
  args?: any;
7
7
  }): Promise<void>;
8
8
  }
9
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/service/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,aAAa,CAAC;AAMrD,qBAAa,OAAQ,SAAQ,WAAW;gBAC1B,IAAI,CAAC,EAAE,GAAG;IAsBhB,IAAI,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,GAAG,CAAA;KAAE;CAa9C"}
@@ -10,6 +10,11 @@ class Service extends core_1.Service {
10
10
  constructor(opts) {
11
11
  process.env.UMI_DIR = (0, path_1.dirname)(require.resolve('../../package'));
12
12
  const cwd = (0, cwd_1.getCwd)();
13
+ // Why?
14
+ // plugin import from umi but don't explicitly depend on it
15
+ // and we may also have old umi installed
16
+ // ref: https://github.com/umijs/umi/issues/8342#issuecomment-1182654076
17
+ require('./requireHook');
13
18
  super({
14
19
  ...opts,
15
20
  env: process.env.NODE_ENV,
package/dist/test.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Config } from '@umijs/test';
2
2
  export * from '@umijs/test';
3
+ export declare function getAliasPathWithKey(alias: Record<string, string>, key: string): string;
3
4
  export declare function getUmiAlias(): Promise<any>;
4
5
  export declare function configUmiAlias(config: Config.InitialOptions): Promise<Partial<{
5
6
  automock: boolean;
@@ -116,3 +117,4 @@ export declare function configUmiAlias(config: Config.InitialOptions): Promise<P
116
117
  watchman: boolean;
117
118
  watchPlugins: (string | [string, Record<string, unknown>])[];
118
119
  }>>;
120
+ //# sourceMappingURL=test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIrC,cAAc,aAAa,CAAC;AAE5B,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7B,GAAG,EAAE,MAAM,GACV,MAAM,CAkBR;AAID,wBAAsB,WAAW,iBAShC;AAED,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAejE"}
package/dist/test.js CHANGED
@@ -14,17 +14,26 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.configUmiAlias = exports.getUmiAlias = void 0;
17
+ exports.configUmiAlias = exports.getUmiAlias = exports.getAliasPathWithKey = void 0;
18
18
  const fs_1 = require("fs");
19
19
  const service_1 = require("./service/service");
20
20
  __exportStar(require("@umijs/test"), exports);
21
21
  function getAliasPathWithKey(alias, key) {
22
- const thePath = alias[key];
23
- if (alias[thePath]) {
24
- return getAliasPathWithKey(alias, thePath);
22
+ if (alias[key]) {
23
+ return getAliasPathWithKey(alias, alias[key]);
24
+ }
25
+ const aliasKeys = Object.keys(alias);
26
+ const keyStartedWith = aliasKeys.find((k) => !k.endsWith('$') && key.startsWith(`${k}/`));
27
+ if (keyStartedWith) {
28
+ const realPath = alias[keyStartedWith];
29
+ const newKey = realPath + key.slice(keyStartedWith.length);
30
+ return getAliasPathWithKey(alias, newKey);
31
+ }
32
+ else {
33
+ return key;
25
34
  }
26
- return thePath;
27
35
  }
36
+ exports.getAliasPathWithKey = getAliasPathWithKey;
28
37
  let service;
29
38
  async function getUmiAlias() {
30
39
  if (!service) {
@@ -42,7 +51,10 @@ async function configUmiAlias(config) {
42
51
  const alias = await getUmiAlias();
43
52
  for (const key of Object.keys(alias)) {
44
53
  const aliasPath = getAliasPathWithKey(alias, key);
45
- if ((0, fs_1.existsSync)(aliasPath) && (0, fs_1.statSync)(aliasPath).isDirectory()) {
54
+ if (key.endsWith('$')) {
55
+ config.moduleNameMapper[`^${key}`] = aliasPath;
56
+ }
57
+ else if ((0, fs_1.existsSync)(aliasPath) && (0, fs_1.statSync)(aliasPath).isDirectory()) {
46
58
  config.moduleNameMapper[`^${key}/(.*)$`] = `${aliasPath}/$1`;
47
59
  config.moduleNameMapper[`^${key}$`] = aliasPath;
48
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umi",
3
- "version": "4.0.0-canary.20220628.2",
3
+ "version": "4.0.0-canary.20220718.1",
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",
@@ -38,15 +38,15 @@
38
38
  "test": "umi-scripts jest-turbo"
39
39
  },
40
40
  "dependencies": {
41
- "@umijs/bundler-utils": "4.0.0-canary.20220628.2",
42
- "@umijs/bundler-webpack": "4.0.0-canary.20220628.2",
43
- "@umijs/core": "4.0.0-canary.20220628.2",
44
- "@umijs/lint": "4.0.0-canary.20220628.2",
45
- "@umijs/preset-umi": "4.0.0-canary.20220628.2",
46
- "@umijs/renderer-react": "4.0.0-canary.20220628.2",
47
- "@umijs/server": "4.0.0-canary.20220628.2",
48
- "@umijs/test": "4.0.0-canary.20220628.2",
49
- "@umijs/utils": "4.0.0-canary.20220628.2",
41
+ "@umijs/bundler-utils": "4.0.0-canary.20220718.1",
42
+ "@umijs/bundler-webpack": "4.0.0-canary.20220718.1",
43
+ "@umijs/core": "4.0.0-canary.20220718.1",
44
+ "@umijs/lint": "4.0.0-canary.20220718.1",
45
+ "@umijs/preset-umi": "4.0.0-canary.20220718.1",
46
+ "@umijs/renderer-react": "4.0.0-canary.20220718.1",
47
+ "@umijs/server": "4.0.0-canary.20220718.1",
48
+ "@umijs/test": "4.0.0-canary.20220718.1",
49
+ "@umijs/utils": "4.0.0-canary.20220718.1",
50
50
  "prettier-plugin-organize-imports": "^2.3.4",
51
51
  "prettier-plugin-packagejson": "^2.2.17"
52
52
  },
@@ -1 +0,0 @@
1
- export declare function printHelp(): void;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printHelp = void 0;
4
- const utils_1 = require("@umijs/utils");
5
- function printHelp() {
6
- utils_1.logger.fatal('A complete log of this run can be found in:');
7
- utils_1.logger.fatal(utils_1.logger.getLatestLogFilePath());
8
- utils_1.logger.fatal('Consider reporting a GitHub issue on https://github.com/umijs/umi/issues');
9
- }
10
- exports.printHelp = printHelp;