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

Function getRelativeCapacitoriOSPath

cli/src/ios/update.ts:356–367  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

354}
355
356async function getRelativeCapacitoriOSPath(config: Config) {
357 const capacitoriOSPath = resolveNode(config.app.rootDir, '@capacitor/ios', 'package.json');
358
359 if (!capacitoriOSPath) {
360 fatal(
361 `Unable to find ${c.strong('node_modules/@capacitor/ios')}.\n` +
362 `Are you sure ${c.strong('@capacitor/ios')} is installed?`,
363 );
364 }
365
366 return convertToUnixPath(relative(config.ios.nativeProjectDirAbs, await realpath(dirname(capacitoriOSPath))));
367}
368
369async function generatePodFile(config: Config, plugins: Plugin[]): Promise<string> {
370 const relativeCapacitoriOSPath = await getRelativeCapacitoriOSPath(config);

Callers 2

updatePodfileFunction · 0.85
generatePodFileFunction · 0.85

Calls 3

resolveNodeFunction · 0.90
fatalFunction · 0.90
convertToUnixPathFunction · 0.90

Tested by

no test coverage detected