fix(v2): bad update notifier dist tag (#3824)

This commit is contained in:
Sébastien Lorber 2020-11-26 12:06:52 +01:00 committed by GitHub
parent aa2daf10fc
commit 85fe96d112
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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
@ -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,
);