hunk.code_window:   const pkgJson = await readPkg()
     t.deepEqual(pkgJson.dependencies, {rimraf: '^2.5.1'}, 'rimraf has been added to dependencies')
   })
   test("don't override existing spec in package.json on named installation", async function (t: tape.Test) {
     const project = prepare(t, {
       dependencies: {
         'is-positive': '^2.0.0', // this will be kept as no newer version is available from the range
  
hunk.labels: keep keep keep add keep keep keep keep
hunk.after_edit: // NOTE: this works differently for global installations. See similar tests in global.ts
  
hunk.file_path: test/install/updatingPkgJson.ts
hunk.type: add
file: export type PnpmErrorCode = 'UNEXPECTED_STORE'
    | 'STORE_BREAKING_CHANGE'
    | 'MODULES_BREAKING_CHANGE'
    | 'SHRINKWRAP_BREAKING_CHANGE'
    | 'MODIFIED_DEPENDENCY'
    | 'NO_OFFLINE_META'
    | 'NO_OFFLINE_TARBALL'
  
  export class PnpmError extends Error {
    constructor (code: PnpmErrorCode, message: string) {
      super(message)
      this.code = code
    }
    code: PnpmErrorCode
  }
  