hunk.code_window: import { logging } from '@angular-devkit/core';
   import * as lockfile from '@yarnpkg/lockfile';
   import { existsSync, readFileSync } from 'fs';
   import * as ini from 'ini';
   import { homedir } from 'os';
   import * as path from 'path';
   import { JsonSchemaForNpmPackageJsonFiles } from './package-json';
  
hunk.labels: keep keep keep keep add keep keep keep
hunk.after_edit: import * as pacote from 'pacote';
  
hunk.file_path: packages/angular/cli/utilities/package-metadata.ts
hunk.type: add
file: import {join} from 'path';
  import {ng} from '../../../utils/process';
  import {expectFileToMatch} from '../../../utils/fs';
  
  
  export default function() {
    const modulePath = join('src', 'app', 'app.module.ts');
  
    return ng('generate', 'pipe', 'test-pipe', '--module', 'app.module.ts')
      .then(() => expectFileToMatch(modulePath,
        /import { TestPipePipe } from '.\/test-pipe.pipe'/))
  
      .then(() => process.chdir(join('src', 'app')))
      .then(() => ng('generate', 'pipe', 'test-pipe2', '--module', 'app.module.ts'))
      .then(() => process.chdir('../..'))
      .then(() => expectFileToMatch(modulePath,
        /import { TestPipe2Pipe } from '.\/test-pipe2.pipe'/))
  
      // Try to run the unit tests.
      .then(() => ng('build', '--configuration=development'));
  }
  