hunk.code_window:     "moduleResolution": "node",
       "outDir": "../dist/out-tsc-e2e",
       "sourceMap": true,
       "target": "es5",
       "typeRoots": [
         "../node_modules/@types"
       ]
     }
   }
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:     "target": "es6",
  
hunk.file_path: packages/@angular/cli/blueprints/ng2/files/e2e/tsconfig.json
hunk.type: replace
file: import {ng} from '../../utils/process';
  import {expectFileToMatch} from '../../utils/fs';
  import {expectGitToBeClean} from '../../utils/git';
  import {expectToFail} from '../../utils/utils';
  
  
  export default function() {
    // Try a prod build.
    return ng('build', '--env=prod')
      .then(() => expectFileToMatch('dist/main.bundle.js', 'production: true'))
      .then(() => expectGitToBeClean())
  
      // Build fails on invalid build target
      .then(() => expectToFail(() => ng('build', '--target=potato')))
  
      // This is a valid target.
      .then(() => ng('build', '--target=production'));
  }
  