Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
"sw-precache-webpack-plugin": "^0.11.2",
"tmp": "0.0.31",
"unfetch": "^3.0.0",
"update-notifier": "^2.2.0",
"url-loader": "^0.5.8",
"webpack": "^2.3.3",
"webpack-chunk-hash": "^0.4.0",
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env node

import updateNotifier from 'update-notifier';
import yargs from 'yargs';
import create from './commands/create';
import build from './commands/build';
Expand All @@ -16,6 +17,8 @@ checkVersion();

installHooks();

updateNotifier({pkg}).notify({ defer: true });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove defer:true because it is already the default. 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! shoot

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 🙏


yargs
.command(create)
.command(build)
Expand All @@ -31,3 +34,4 @@ yargs
.demandCommand()
.strict()
.argv;

2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7288,7 +7288,7 @@ update-notifier@^1.0.3:
semver-diff "^2.0.0"
xdg-basedir "^2.0.0"

update-notifier@^2.1.0:
update-notifier@^2.1.0, update-notifier@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.2.0.tgz#1b5837cf90c0736d88627732b661c138f86de72f"
dependencies:
Expand Down