hunk.code_window:             const content = fs.readFileSync(file, { encoding: 'utf-8' });
               if (content.indexOf('require("typescript")') >= 0) {
                 fail(`${file} has a typescript require`);
               }
             }
           });
  
hunk.labels: keep replace replace keep keep keep
hunk.after_edit:             if (content.indexOf(`from 'typescript'`) >= 0) {
                 fail(`${file} has a typescript import`);
  
hunk.file_path: packages/schematics/angular/no_typescript_runtime_dep_spec.js
hunk.type: replace
file: import {join} from 'path';
  import {ng} from '../../../utils/process';
  import {expectFileToMatch} from '../../../utils/fs';
  
  
  export default function() {
    const root = process.cwd();
    //                       projects/   test-project/   src/   app.module.ts
    const modulePath = join('src', 'app', 'app.module.ts');
  
    return ng('generate', 'component', 'test-component', '--module', 'app.module.ts')
      .then(() => expectFileToMatch(modulePath,
        /import { TestComponentComponent } from '.\/test-component\/test-component.component'/))
  
      .then(() => process.chdir(join(root, 'src', 'app')))
      .then(() => ng('generate', 'component', 'test-component2', '--module', 'app.module.ts'))
      .then(() => process.chdir('../..'))
      .then(() => expectFileToMatch(modulePath,
        /import { TestComponent2Component } from '.\/test-component2\/test-component2.component'/))
  
      // Try to run the unit tests.
      .then(() => ng('build'));
  }
  