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

Function getIOSPackageManager

cli/src/telemetry.ts:139–150  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

137 * errors from this signal.
138 */
139export async function getIOSPackageManager(config: Config): Promise<PackageManager | 'unknown'> {
140 try {
141 if (!(await pathExists(config.ios.platformDirAbs))) {
142 return 'unknown';
143 }
144
145 return await config.ios.packageManager;
146 } catch (e) {
147 debug('Could not resolve iOS package manager for telemetry: %O', e);
148 return 'unknown';
149 }
150}
151
152/**
153 * Get a unique anonymous identifier for this app.

Callers 2

telemetry.spec.tsFile · 0.90
telemetryActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected