Skip to content

Commit

Permalink
fix(v2): bad update notifier dist tag (#3824)
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber authored Nov 26, 2020
1 parent aa2daf1 commit 85fe96d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/docusaurus-init/templates/README.MD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Templates

Official templates provided by Docusaurus. They are designed to be selected when using the `npx @docusaurus/init@next init [name] [template]` CLI command.
Official templates provided by Docusaurus. They are designed to be selected when using the `npx @docusaurus/init init [name] [template]` CLI command.

## Guide to Test Templates for Developer

Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus/bin/docusaurus.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const boxen = require('boxen');
const notifier = updateNotifier({
pkg,
updateCheckInterval: 1000 * 60 * 60 * 24, // one day
distTag: 'next', // compare with the version that is tagged 'next' on npm
});

// allow the user to be notified for updates on the first run
Expand All @@ -50,7 +49,7 @@ if (notifier.update && notifier.update.current !== notifier.update.latest) {
`Update available ${chalk.dim(`${notifier.update.current}`)}${chalk.reset(
' → ',
)}${chalk.green(`${notifier.update.latest}`)}\nRun ${chalk.cyan(
'yarn upgrade @docusaurus/core@next',
'yarn upgrade @docusaurus/core',
)} to update`,
boxenOptions,
);
Expand Down

0 comments on commit 85fe96d

Please sign in to comment.