Skip to content

Commit 72464c9

Browse files
DmitriyKirakosyanlucen-ms
authored andcommitted
Remove update notifier
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.
1 parent c3ac605 commit 72464c9

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

cli/package-lock.json

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"rimraf": "^2.5.1",
3737
"semver": "^7.5.3",
3838
"simctl": "^2.0.3",
39-
"simple-update-notifier": "^2.0.0",
4039
"slash": "1.0.0",
4140
"superagent": "^8.0.9",
4241
"which": "^1.2.7",

cli/script/command-parser.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import * as yargs from "yargs";
55
import * as cli from "../script/types/cli";
66
import * as chalk from "chalk";
7-
const updateNotifier = require("simple-update-notifier");
87
import backslash = require("backslash");
98
import parseDuration = require("parse-duration");
109

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

3432
yargs.showHelp();
3533
wasHelpShown = true;
3634
}
3735
}
3836

39-
function updateCheck(): void {
40-
const notifier = updateNotifier({ pkg: packageJson });
41-
if (notifier.update) {
42-
notifier.notify();
43-
}
44-
}
45-
4637
function accessKeyAdd(commandName: string, yargs: yargs.Argv): void {
4738
isValidCommand = true;
4839
yargs

0 commit comments

Comments
 (0)