hunk.code_window:     "script-loader": "^0.7.0",
       "semver": "^5.3.0",
       "silent-error": "^1.0.0",
       "source-map": "^0.5.6",
       "source-map-loader": "^0.1.5",
       "sourcemap-istanbul-instrumenter-loader": "^0.2.0",
       "style-loader": "^0.13.1",
       "stylus": "^0.54.5",
       "stylus-loader": "^2.4.0",
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.file_path: package.json
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 Watcher = require('../../ember-cli/lib/models/watcher');
  const path = require('path');
  
  Error.stackTraceLimit = Infinity;
  
  module.exports = function(options) {
  
    // patch UI to not print Ember-CLI warnings (which don't apply to Angular CLI)
    UI.prototype.writeWarnLine = function () { }
  
    // patch Watcher to always default to node, not checking for Watchman
    Watcher.detectWatcher = function(ui, _options){
      var options = _options || {};
      options.watcher = 'node';
      return Promise.resolve(options);
    }
  
    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);
  };
  