MCPcopy
hub / github.com/meteor/meteor / installedVersionForPlatform

Method installedVersionForPlatform

tools/cordova/project.js:400–413  ·  view source on GitHub ↗
(platform)

Source from the content-addressed store, hash-verified

398 }
399
400 installedVersionForPlatform(platform) {
401 const command = files.convertToOSPath(files.pathJoin(
402 this.projectRoot, 'platforms', platform, 'cordova', 'version'));
403 // Make sure the command exists before trying to execute it
404 if (files.exists(command)) {
405 return this.runCommands(
406 `getting installed version for platform ${platform} in Cordova project`,
407 execFileSync(command, {
408 env: this.defaultEnvWithPathsAdded(),
409 cwd: this.projectRoot}), null, null);
410 } else {
411 return null;
412 }
413 }
414
415 updatePlatforms(platforms = this.listInstalledPlatforms()) {
416 this.runCommands(`updating Cordova project for platforms \

Callers 1

createIfNeededMethod · 0.95

Calls 3

runCommandsMethod · 0.95
execFileSyncFunction · 0.90

Tested by

no test coverage detected