Skip to content

Commit

Permalink
Remove update notifier
Browse files Browse the repository at this point in the history
This PR removes the update check, which logs about newer version for
code-push-cli. Since this CLI version is not linked to the deprecated
[code-push-cli](https://www.npmjs.com/package/code-push-cli) package and
no releases are planned, we don't need the update check.
  • Loading branch information
DmitriyKirakosyan authored and lucen-ms committed Oct 11, 2024
1 parent c3ac605 commit 72464c9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
12 changes: 0 additions & 12 deletions cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"rimraf": "^2.5.1",
"semver": "^7.5.3",
"simctl": "^2.0.3",
"simple-update-notifier": "^2.0.0",
"slash": "1.0.0",
"superagent": "^8.0.9",
"which": "^1.2.7",
Expand Down
9 changes: 0 additions & 9 deletions cli/script/command-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import * as yargs from "yargs";
import * as cli from "../script/types/cli";
import * as chalk from "chalk";
const updateNotifier = require("simple-update-notifier");
import backslash = require("backslash");
import parseDuration = require("parse-duration");

Expand All @@ -28,21 +27,13 @@ export function showHelp(showRootDescription?: boolean): void {
console.log(chalk.cyan("======================================"));
console.log("");
console.log("CodePush is a service that enables you to deploy mobile app updates directly to your users' devices.\n");
updateCheck();
}

yargs.showHelp();
wasHelpShown = true;
}
}

function updateCheck(): void {
const notifier = updateNotifier({ pkg: packageJson });
if (notifier.update) {
notifier.notify();
}
}

function accessKeyAdd(commandName: string, yargs: yargs.Argv): void {
isValidCommand = true;
yargs
Expand Down

0 comments on commit 72464c9

Please sign in to comment.