Fix for BF-CLI #130
This commit is contained in:
Родитель
0fda51908a
Коммит
0086e75e94
|
@ -9,6 +9,15 @@ const chalk = require('chalk');
|
|||
const pkg = require('../package.json');
|
||||
const semver = require('semver');
|
||||
const getLatestVersion = require('latest-version');
|
||||
|
||||
process.stdout.write(chalk.default.white(`\n\n-----------------------------------------------------------\n`));
|
||||
process.stdout.write(chalk.default.redBright(` NOTICE:\n`));
|
||||
process.stdout.write(chalk.default.whiteBright(` This tool has been deprecated.\n`));
|
||||
process.stdout.write(chalk.default.white(` All functionality was ported over to the new BF CLI.\n`));
|
||||
process.stdout.write(chalk.default.white(` To learn more visit `));
|
||||
process.stdout.write(chalk.default.blueBright(`https://aka.ms/NewBFCLI\n`));
|
||||
process.stdout.write(chalk.default.white(`-----------------------------------------------------------\n\n`));
|
||||
|
||||
getLatestVersion(pkg.name, { version: `>${pkg.version}` })
|
||||
.catch((error) => pkg.version)
|
||||
.then((latest) => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче