Skip to content

Commit

Permalink
fix: Remove duplicate update notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
anushkafka committed Dec 11, 2024
1 parent fc0e83c commit 78096a6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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()
Expand Down

0 comments on commit 78096a6

Please sign in to comment.