MCPcopy
hub / github.com/ionic-team/capacitor / printPackageVersion

Function printPackageVersion

cli/src/tasks/doctor.ts:58–64  ·  view source on GitHub ↗
(packageName: string, packagePath: string | null)

Source from the content-addressed store, hash-verified

56}
57
58async function printPackageVersion(packageName: string, packagePath: string | null) {
59 let version;
60 if (packagePath) {
61 version = (await readJSON(packagePath)).version;
62 }
63 output.write(` ${packageName}: ${c.weak(version || 'not installed')}\n`);
64}
65
66export async function doctor(config: Config, platformName: string): Promise<void> {
67 if (platformName === config.ios.name) {

Callers 1

printInstalledPackagesFunction · 0.85

Calls 1

readJSONFunction · 0.85

Tested by

no test coverage detected