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

Function getProjectPlatformDirectory

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

Source from the content-addressed store, hash-verified

271}
272
273export async function getProjectPlatformDirectory(config: Config, platform: string): Promise<string | null> {
274 const platformPath = getPlatformDirectory(config, platform);
275
276 if (platformPath && (await pathExists(platformPath))) {
277 return platformPath;
278 }
279
280 return null;
281}
282
283export async function selectPlatforms(config: Config, selectedPlatformName?: string): Promise<string[]> {
284 if (selectedPlatformName) {

Callers 3

addCommandFunction · 0.90
selectPlatformsFunction · 0.85
getAddedPlatformsFunction · 0.85

Calls 1

getPlatformDirectoryFunction · 0.85

Tested by

no test coverage detected