hunk.code_window: import * as path from 'path';
   import { JsonSchemaForNpmPackageJsonFiles } from './package-json';
   const pacote = require('pacote');
   const npmPackageJsonCache = new Map<string, Promise<Partial<NpmRepositoryPackageJson>>>();
   export interface NpmRepositoryPackageJson {
     name: string;
  
hunk.labels: keep keep keep replace replace keep keep keep keep
hunk.file_path: packages/angular/cli/utilities/package-metadata.ts
hunk.type: replace
file: import { execAndWaitForOutputToMatch, execWithEnv, killAllProcesses } from '../../utils/process';
  
  
  export default async function() {
    if (process.platform.startsWith('win')) {
      // "On Windows, process.title affects the console title, but not the name of the process in the task manager."
      // https://stackoverflow.com/questions/44756196/how-to-change-the-node-js-process-name-on-windows-10#comment96259375_44756196
      return Promise.resolve();
    }
  
    try {
      await execAndWaitForOutputToMatch('ng', ['build', '--configuration=development', '--watch'], /./);
  
      const output = await execWithEnv('ps', ['x'], { COLUMNS: '200' });
  
      if (!output.stdout.match(/ng build --configuration=development --watch/)) {
        throw new Error('Title of the process was not properly set.');
      }
    } finally {
      killAllProcesses();
    }
  }
  