umi 3.5.28 → 3.5.29-alpha.0

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/README.md CHANGED
@@ -2,7 +2,7 @@ English | [简体中文](https://github.com/umijs/umi/blob/master/README.zh-CN.m
2
2
 
3
3
  # umi
4
4
 
5
- [![codecov](https://codecov.io/gh/umijs/umi/branch/master/graph/badge.svg)](https://codecov.io/gh/umijs/umi) [![NPM version](https://img.shields.io/npm/v/umi.svg?style=flat)](https://npmjs.org/package/umi) [![CircleCI](https://circleci.com/gh/umijs/umi/tree/master.svg?style=svg)](https://circleci.com/gh/umijs/umi/tree/master) [![Build Status](https://dev.azure.com/umijs/umi/_apis/build/status/umijs.umi?branchName=master)](https://dev.azure.com/umijs/umi/_build/latest?definitionId=1&branchName=master) [![GitHub Actions status](https://github.com/umijs/umi/workflows/Node%20CI/badge.svg)](https://github.com/umijs/umi) [![NPM downloads](http://img.shields.io/npm/dm/umi.svg?style=flat)](https://npmjs.org/package/umi) [![Install size](https://badgen.net/packagephobia/install/umi)](https://packagephobia.now.sh/result?p=umi)
5
+ [![codecov](https://codecov.io/gh/umijs/umi/branch/master/graph/badge.svg)](https://codecov.io/gh/umijs/umi) [![NPM version](https://img.shields.io/npm/v/umi.svg?style=flat)](https://npmjs.org/package/umi) [![CircleCI](https://circleci.com/gh/umijs/umi/tree/3.x.svg?style=svg)](https://circleci.com/gh/umijs/umi/tree/3.x) [![Build Status](https://dev.azure.com/umijs/umi/_apis/build/status/umijs.umi?branchName=master)](https://dev.azure.com/umijs/umi/_build/latest?definitionId=1&branchName=master) [![GitHub Actions status](https://github.com/umijs/umi/workflows/Node%20CI/badge.svg)](https://github.com/umijs/umi) [![NPM downloads](http://img.shields.io/npm/dm/umi.svg?style=flat)](https://npmjs.org/package/umi) [![Install size](https://badgen.net/packagephobia/install/umi)](https://packagephobia.now.sh/result?p=umi)
6
6
 
7
7
  🍙 Extensible enterprise-level front-end application framework.
8
8
 
package/bin/umi.js CHANGED
@@ -2,9 +2,19 @@
2
2
 
3
3
  require('v8-compile-cache');
4
4
 
5
+ const updateNotifier = require('@umijs/deps/compiled/update-notifier');
5
6
  const resolveCwd = require('@umijs/deps/compiled/resolve-cwd');
6
7
 
7
- const { name, bin } = require('../package.json');
8
+ const pkg = require('../package.json');
9
+ const { name, bin } = pkg;
10
+
11
+ // Notify update to Umi4
12
+ updateNotifier({
13
+ pkg,
14
+ shouldNotifyInNpmScript: true,
15
+ updateCheckInterval: 0
16
+ }).notify();
17
+
8
18
  const localCLI = resolveCwd.silent(`${name}/${bin['umi']}`);
9
19
  if (!process.env.USE_GLOBAL_UMI && localCLI && localCLI !== __filename) {
10
20
  const debug = require('@umijs/utils').createDebug('umi:cli');
package/lib/cli.js CHANGED
@@ -128,6 +128,9 @@ _asyncToGenerator(function* () {
128
128
  } catch (e) {
129
129
  console.error(_utils().chalk.red(e.message));
130
130
  console.error(e.stack);
131
+
132
+ _utils().printHelp.feedback();
133
+
131
134
  process.exit(1);
132
135
  }
133
136
  })();
package/lib/forkedDev.js CHANGED
@@ -73,6 +73,9 @@ _asyncToGenerator(function* () {
73
73
  } catch (e) {
74
74
  console.error(_utils().chalk.red(e.message));
75
75
  console.error(e.stack);
76
+
77
+ _utils().printHelp.feedback();
78
+
76
79
  process.exit(1);
77
80
  }
78
81
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umi",
3
- "version": "3.5.28",
3
+ "version": "3.5.29-alpha.0",
4
4
  "description": "umi",
5
5
  "main": "index.js",
6
6
  "types": "types.d.ts",
@@ -23,18 +23,18 @@
23
23
  ],
24
24
  "license": "MIT",
25
25
  "bugs": "http://github.com/umijs/umi/issues",
26
- "homepage": "https://github.com/umijs/umi/tree/master/packages/umi#readme",
26
+ "homepage": "https://github.com/umijs/umi/tree/3.x/packages/umi#readme",
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@umijs/bundler-webpack": "3.5.28",
32
- "@umijs/core": "3.5.28",
33
- "@umijs/deps": "3.5.28",
34
- "@umijs/preset-built-in": "3.5.28",
35
- "@umijs/runtime": "3.5.28",
36
- "@umijs/types": "3.5.28",
37
- "@umijs/utils": "3.5.28",
31
+ "@umijs/bundler-webpack": "3.5.29-alpha.0",
32
+ "@umijs/core": "3.5.29-alpha.0",
33
+ "@umijs/deps": "3.5.29-alpha.0",
34
+ "@umijs/preset-built-in": "3.5.29-alpha.0",
35
+ "@umijs/runtime": "3.5.29-alpha.0",
36
+ "@umijs/types": "3.5.29-alpha.0",
37
+ "@umijs/utils": "3.5.29-alpha.0",
38
38
  "react": "16.x",
39
39
  "react-dom": "16.x",
40
40
  "v8-compile-cache": "2.3.0"