From 78096a64f7cb50ca1158c215a13ccb4c60056f3d Mon Sep 17 00:00:00 2001 From: anushkafka Date: Wed, 11 Dec 2024 22:55:46 +1100 Subject: [PATCH] fix: Remove duplicate update notifier --- cli/src/index.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/cli/src/index.ts b/cli/src/index.ts index a6b2233f..0a66f820 100755 --- a/cli/src/index.ts +++ b/cli/src/index.ts @@ -4,7 +4,6 @@ import yargs from "yargs"; import { hideBin } from "yargs/helpers"; import updateNotifier from "simple-update-notifier"; import pkg from "../package.json"; - import { Auth } from "./commands/auth"; import { Cli } from "./commands/cli"; import { Clusters } from "./commands/clusters"; @@ -13,17 +12,14 @@ import { Bootstrap } from "./commands/bootstrap"; import { Runs } from "./commands/runs"; import { Generate } from "./commands/generate"; import { AppOpen } from "./commands/open"; -import packageJson from "../package.json"; // Check for updates and notify -const notifier = updateNotifier({ - pkg, +updateNotifier({ + pkg: pkg, updateCheckInterval: 1000 * 60 * 60 * 24, - shouldNotifyInNpmScript: true, + shouldNotifyInNpmScript: true, }); -updateNotifier({ pkg: packageJson }); - const cli = yargs(hideBin(process.argv)) .scriptName("@inferable/cli") .strict()