MCPcopy Index your code
hub / github.com/angular/angular-cli / runNgAdd

Function runNgAdd

tests/e2e/tests/commands/add/peer.ts:32–44  ·  view source on GitHub ↗
(collectionName: string)

Source from the content-addressed store, hash-verified

30}
31
32async function runNgAdd(collectionName: string): Promise<string> {
33 const collectionPath = resolve(collectionName);
34
35 // Copy locally as bun doesn't install the dependency correctly if it has symlinks.
36 await cp(assetDir(collectionName), collectionPath, {
37 recursive: true,
38 dereference: true,
39 });
40
41 const { stdout } = await ng('add', collectionPath, '--skip-confirmation');
42
43 return stdout;
44}

Callers 1

peer.tsFile · 0.85

Calls 3

assetDirFunction · 0.90
ngFunction · 0.90
resolveFunction · 0.50

Tested by

no test coverage detected