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

Function silentNpm

tests/e2e/utils/process.ts:384–400  ·  view source on GitHub ↗
(
  ...args: string[] | [args: string[], options?: { cwd?: string }]
)

Source from the content-addressed store, hash-verified

382export function silentNpm(...args: string[]): Promise<ProcessOutput>;
383export function silentNpm(args: string[], options?: { cwd?: string }): Promise<ProcessOutput>;
384export function silentNpm(
385 ...args: string[] | [args: string[], options?: { cwd?: string }]
386): Promise<ProcessOutput> {
387 if (Array.isArray(args[0])) {
388 const [params, options] = args;
389 return _exec(
390 {
391 silent: true,
392 cwd: (options as { cwd?: string } | undefined)?.cwd,
393 },
394 'npm',
395 params,
396 );
397 } else {
398 return _exec({ silent: true }, 'npm', args as string[]);
399 }
400}
401
402export function silentYarn(...args: string[]) {
403 return _exec({ silent: true }, 'yarn', args);

Callers 15

installWorkspacePackagesFunction · 0.90
installPackageFunction · 0.90
uninstallPackageFunction · 0.90
completion.tsFile · 0.90
create-angular.tsFile · 0.90
publishOutdatedFunction · 0.90
run-target.tsFile · 0.90
registers-tools.tsFile · 0.90
best-practices.tsFile · 0.90

Calls 1

_execFunction · 0.85

Tested by

no test coverage detected