MCPcopy Index your code
hub / github.com/ionic-team/capacitor / getCapacitorPackageVersion

Function getCapacitorPackageVersion

cli/src/common.ts:248–250  ·  view source on GitHub ↗
(config: Config, platform: string)

Source from the content-addressed store, hash-verified

246}
247
248export async function getCapacitorPackageVersion(config: Config, platform: string): Promise<string> {
249 return (await requireCapacitorPackage(config, platform)).version;
250}
251
252export async function getCoreVersion(config: Config): Promise<string> {
253 return getCapacitorPackageVersion(config, 'core');

Callers 6

updatePluginFilesFunction · 0.90
generatePackageTextFunction · 0.90
getCoreVersionFunction · 0.85
getCLIVersionFunction · 0.85
checkPlatformVersionsFunction · 0.85

Calls 1

requireCapacitorPackageFunction · 0.85

Tested by

no test coverage detected