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

Function installPlatform

cli/test/util.ts:67–70  ·  view source on GitHub ↗
(appDir: string, platform: string)

Source from the content-addressed store, hash-verified

65`;
66
67export async function installPlatform(appDir: string, platform: string): Promise<void> {
68 const platformPath = resolve(cwd, '..', platform);
69 await runCommand('npm', ['install', platformPath], { cwd: appDir });
70}
71
72export async function makeAppDir(monoRepoLike = false): Promise<void> {
73 const appDirObj: any = await mktmp();

Callers 4

update.ios.spec.tsFile · 0.90
add.ios.spec.tsFile · 0.90

Calls 1

runCommandFunction · 0.90

Tested by

no test coverage detected