hunk.code_window: }
   let cli;
   try {
     const projectLocalCli = resolve(
       '@angular/cli',
       {
         checkGlobal: false,
         basedir: process.cwd(),
         preserveSymlinks: true,
       },
     );
     // This was run from a global, check local version.
     const globalVersion = new SemVer(packageJson['version']);
     let localVersion;
  
hunk.labels: keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep
hunk.after_edit:   const projectLocalCli = require.resolve('@angular/cli', { paths: [process.cwd()] });
  
hunk.file_path: packages/angular/cli/lib/init.ts
hunk.type: replace
file: /**
   * @license
   * Copyright Google Inc. All Rights Reserved.
   *
   * Use of this source code is governed by an MIT-style license that can be
   * found in the LICENSE file at https://angular.io/license
   */
  
  import { Architect } from '@angular-devkit/architect/src/index2';
  import { TestLogger } from '@angular-devkit/architect/testing';
  import { browserBuild, createArchitect, host } from '../utils';
  
  
  describe('Browser Builder no entry module', () => {
    const target = { project: 'app', target: 'build' };
    let architect: Architect;
  
    beforeEach(async () => {
      await host.initialize().toPromise();
      architect = (await createArchitect(host.root())).architect;
    });
    afterEach(async () => host.restore().toPromise());
  
    it('works', async () => {
      // Remove the bootstrap but keep a reference to AppModule so the import is not elided.
      host.replaceInFile('src/main.ts', /platformBrowserDynamic.*?bootstrapModule.*?;/, '');
      host.appendToFile('src/main.ts', 'console.log(AppModule);');
  
      await browserBuild(architect, host, target, { baseHref: '/myUrl' });
    });
  
    it('reports warning when no bootstrap code', async () => {
      host.replaceInFile('src/main.ts', /./g, '');
      host.appendToFile('src/main.ts', `import './app/app.module';`);
  
      const logger = new TestLogger('no-bootstrap');
      await browserBuild(architect, host, target, { baseHref: '/myUrl' }, { logger });
      expect(logger.includes('Lazy routes discovery is not enabled')).toBe(true);
    });
  });
  