hunk.code_window:       project = commandOptions.project;
         target = this.target;
         if (commandOptions.prod) {
           // The --prod flag will always be the first configuration, available to be overwritten
           // by following configurations.
           configuration = 'production';
         }
         if (commandOptions.configuration) {
           configuration =
             `${configuration ? `${configuration},` : ''}${commandOptions.configuration}`;
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit:         this.logger.warn('Option "--prod" is deprecated: Use "--configuration production" instead.');
  
hunk.file_path: packages/angular/cli/models/architect-command.ts
hunk.type: add
file: import * as fs from 'fs';
  import * as path from 'path';
  import { getGlobalVariable } from '../../utils/env';
  import { exec, silentNpm } from '../../utils/process';
  import { rimraf } from '../../utils/fs';
  
  export default async function () {
    // setup
    const argv = getGlobalVariable('argv');
    if (argv.noglobal) {
      return;
    }
  
    await silentNpm(
      'install',
      '-g',
      '@angular-devkit/schematics-cli',
    );
    await exec(process.platform.startsWith('win') ? 'where' : 'which', 'schematics');
  
    const startCwd = process.cwd();
    const schematicPath = path.join(startCwd, 'test-schematic');
  
    try {
      // create schematic
      await exec('schematics', 'schematic', '--name', 'test-schematic');
  
      process.chdir(schematicPath);
  
      await silentNpm('install');
      await silentNpm('test');
    } finally {
      // restore path
      process.chdir(startCwd);
      await rimraf(schematicPath);
    }
  }
  