Skip to content

Commit 8310ff6

Browse files
committed
fix(info): disable update check for cordova cli
1 parent c266b7b commit 8310ff6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/@ionic/cli-utils/src/lib/integrations/cordova

packages/@ionic/cli-utils/src/lib/integrations/cordova/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ export class Integration extends BaseIntegration {
7171
}
7272

7373
async getCordovaVersion(): Promise<string | undefined> {
74-
return this.e.shell.cmdinfo('cordova', ['-v', '--no-telemetry']);
74+
return this.e.shell.cmdinfo('cordova', ['-v', '--no-telemetry', '--no-update-notifier']);
7575
}
7676

7777
async getCordovaPlatformVersions(): Promise<string> {
7878
try {
79-
const output = await this.e.shell.output('cordova', ['platform', 'ls', '--no-telemetry'], { showCommand: false });
79+
const output = await this.e.shell.output('cordova', ['platform', 'ls', '--no-telemetry', '--no-update-notifier'], { showCommand: false });
8080
const platforms = output
8181
.replace('Installed platforms:', '')
8282
.replace(/Available platforms[\s\S]+/, '')
@@ -102,7 +102,7 @@ export class Integration extends BaseIntegration {
102102
];
103103

104104
try {
105-
const output = await this.e.shell.output('cordova', ['plugin', 'ls', '--no-telemetry'], { showCommand: false });
105+
const output = await this.e.shell.output('cordova', ['plugin', 'ls', '--no-telemetry', '--no-update-notifier'], { showCommand: false });
106106
const pluginRe = /^([a-z-]+)\s+(\d\.\d\.\d).+$/;
107107
const plugins = output
108108
.split('\n')

0 commit comments

Comments
 (0)