fix: suppress update deprecation warnings
This commit is contained in:
@@ -376,6 +376,8 @@ function printResult(result: UpdateRunResult, opts: PrintResultOptions) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {
|
export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {
|
||||||
|
process.noDeprecation = true;
|
||||||
|
process.env.NODE_NO_WARNINGS = "1";
|
||||||
const timeoutMs = opts.timeout ? Number.parseInt(opts.timeout, 10) * 1000 : undefined;
|
const timeoutMs = opts.timeout ? Number.parseInt(opts.timeout, 10) * 1000 : undefined;
|
||||||
|
|
||||||
if (timeoutMs !== undefined && (Number.isNaN(timeoutMs) || timeoutMs <= 0)) {
|
if (timeoutMs !== undefined && (Number.isNaN(timeoutMs) || timeoutMs <= 0)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user