hunk.code_window:       } else {
           throw failure;
         }
       }
       // Return if the build encountered any errors
       if (result.errors.length) {
         return {
           errors: result.errors,
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit:     // Update files that should be watched.
       // While this should technically not be linked to incremental mode, incremental is only
       // currently enabled with watch mode where watch files are needed.
       if (this.incremental) {
         this.watchFiles.clear();
         // Add input files except virtual angular files which do not exist on disk
         Object.keys(result.metafile.inputs)
           .filter((input) => !input.startsWith('angular:'))
           .forEach((input) => this.watchFiles.add(join(this.workspaceRoot, input)));
       }
  
hunk.file_path: packages/angular_devkit/build_angular/src/tools/esbuild/bundler-context.ts
hunk.type: add
file: /**
   * @license
   * Copyright Google LLC 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 { join } from 'path';
  import { Argv } from 'yargs';
  import {
    CommandModule,
    CommandModuleImplementation,
    CommandScope,
    Options,
  } from '../../command-builder/command-module';
  import {
    addCommandModuleToYargs,
    demandCommandFailureMessage,
  } from '../../command-builder/utilities/command';
  import { CacheCleanModule } from './clean/cli';
  import { CacheInfoCommandModule } from './info/cli';
  import { CacheDisableModule, CacheEnableModule } from './settings/cli';
  
  export default class CacheCommandModule
    extends CommandModule
    implements CommandModuleImplementation
  {
    command = 'cache';
    describe = 'Configure persistent disk cache and retrieve cache statistics.';
    longDescriptionPath = join(__dirname, 'long-description.md');
    override scope = CommandScope.In;
  
    builder(localYargs: Argv): Argv {
      const subcommands = [
        CacheEnableModule,
        CacheDisableModule,
        CacheCleanModule,
        CacheInfoCommandModule,
      ].sort();
  
      for (const module of subcommands) {
        localYargs = addCommandModuleToYargs(localYargs, module, this.context);
      }
  
      return localYargs.demandCommand(1, demandCommandFailureMessage).strict();
    }
  
    run(_options: Options<{}>): void {}
  }
  