hunk.code_window:       };
         webpackCompiler.run(callback);
       })
         .then(() => {
           // Deletes temporary build folder
           rimraf.sync(path.resolve(project.root, buildDir));
         })
         .catch((err: Error) => {
           if (err) {
             this.ui.writeError('\nAn error occured during the i18n extraction:\n'
               + ((err && err.stack) || err));
           }
         });
     }
   });
hunk.labels: keep keep keep keep replace replace replace replace replace replace replace replace replace replace keep keep
hunk.after_edit:     .catch((err: Error) => {
         if (err) {
           this.ui.writeError('\nAn error occured during the i18n extraction:\n'
             + ((err && err.stack) || err));
         }
       });
  
hunk.file_path: packages/@angular/cli/tasks/extract-i18n.ts
hunk.type: replace
file: /*eslint-disable no-console */
  
  // Prevent the dependency validation from tripping because we don't import these. We need
  // it as a peer dependency of @angular/core.
  // require('zone.js')
  
  
  // This file hooks up on require calls to transpile TypeScript.
  const cli = require('../../ember-cli/lib/cli');
  const UI = require('../../ember-cli/lib/ui');
  const path = require('path');
  
  
  module.exports = function(options) {
  
    // patch UI to not print Ember-CLI warnings (which don't apply to Angular CLI)
    UI.prototype.writeWarnLine = function () { }
  
    options.cli = {
      name: 'ng',
      root: path.join(__dirname, '..', '..'),
      npmPackage: '@angular/cli'
    };
  
    // ensure the environemnt variable for dynamic paths
    process.env.PWD = path.normalize(process.env.PWD || process.cwd());
    process.env.CLI_ROOT = process.env.CLI_ROOT || path.resolve(__dirname, '..', '..');
  
    return cli(options);
  };
  