mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
fix(v2): bad update notifier dist tag (#3824)
This commit is contained in:
parent
aa2daf10fc
commit
85fe96d112
2 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Templates
|
# 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
|
## Guide to Test Templates for Developer
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@ const boxen = require('boxen');
|
||||||
const notifier = updateNotifier({
|
const notifier = updateNotifier({
|
||||||
pkg,
|
pkg,
|
||||||
updateCheckInterval: 1000 * 60 * 60 * 24, // one day
|
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
|
// 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(
|
`Update available ${chalk.dim(`${notifier.update.current}`)}${chalk.reset(
|
||||||
' → ',
|
' → ',
|
||||||
)}${chalk.green(`${notifier.update.latest}`)}\nRun ${chalk.cyan(
|
)}${chalk.green(`${notifier.update.latest}`)}\nRun ${chalk.cyan(
|
||||||
'yarn upgrade @docusaurus/core@next',
|
'yarn upgrade @docusaurus/core',
|
||||||
)} to update`,
|
)} to update`,
|
||||||
boxenOptions,
|
boxenOptions,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue