hunk.code_window: import * as path from 'path';
   import { JsonSchemaForNpmPackageJsonFiles } from './package-json';
   const pacote = require('pacote');
   const npmPackageJsonCache = new Map<string, Promise<Partial<NpmRepositoryPackageJson>>>();
   export interface NpmRepositoryPackageJson {
     name: string;
  
hunk.labels: keep keep keep replace replace keep keep keep keep
hunk.file_path: packages/angular/cli/utilities/package-metadata.ts
hunk.type: replace
file: const global: {[name: string]: any} = Object.create(null);
  
  
  export function setGlobalVariable(name: string, value: any) {
    global[name] = value;
  }
  
  export function getGlobalVariable(name: string): any {
    if (!(name in global)) {
      throw new Error(`Trying to access variable "${name}" but it's not defined.`);
    }
    return global[name];
  }
  