mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-07 04:21:11 +00:00
This reverts commit 9b1551e208.
This commit is contained in:
@@ -16,7 +16,6 @@ import {
|
||||
stringifyYaml,
|
||||
} from '@redocly/openapi-core';
|
||||
import { Totals, outputExtensions, Entrypoint } from './types';
|
||||
import * as updateNotifier from 'update-notifier';
|
||||
|
||||
export async function getFallbackApisOrExit(
|
||||
argsApis: string[] | undefined,
|
||||
@@ -324,16 +323,3 @@ export function isSubdir(parent: string, dir: string): boolean {
|
||||
const relative = path.relative(parent, dir);
|
||||
return !!relative && !/^..($|\/)/.test(relative) && !path.isAbsolute(relative);
|
||||
}
|
||||
|
||||
export function notifyUpdateCliVersion() {
|
||||
const pkg = require('../package.json');
|
||||
const notifier = updateNotifier({
|
||||
pkg,
|
||||
updateCheckInterval: 0,
|
||||
shouldNotifyInNpmScript: true,
|
||||
});
|
||||
notifier.notify({
|
||||
message:
|
||||
'A new version of Redocly CLI ({latestVersion}) is available.\nUpdate now: `npx @redocly/cli@latest upgrade`.\nChangelog: https://redocly.com/docs/cli/changelog',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user