hunk.code_window:   pnpm-file-reporter: ^0.0.1
     pnpm-list: ^1.0.0
     pnpm-logger: ^0.5.2
     ramda: ^0.24.1
     rimraf: ^2.5.4
     supi: ^0.2.7
     tslint: ^5.4.2
     typescript: ^2.4.1
     update-notifier: ^2.1.0
     validate-commit-msg: ^2.7.0
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:   supi: ^0.2.8
  
hunk.file_path: shrinkwrap.yaml
hunk.type: replace
file: import 'sepia'
  import tape = require('tape')
  import promisifyTape from 'tape-promise'
  const test = promisifyTape(tape)
  import path = require('path')
  import fs = require('mz/fs')
  import caw = require('caw')
  import semver = require('semver')
  import crossSpawn = require('cross-spawn')
  const spawnSync = crossSpawn.sync
  import isCI = require('is-ci')
  import rimraf = require('rimraf-then')
  import readPkg = require('read-pkg')
  import {
    prepare,
    addDistTag,
    testDefaults,
    execPnpmSync,
  } from '../utils'
  import loadJsonFile = require('load-json-file')
  const basicPackageJson = loadJsonFile.sync(path.join(__dirname, '../utils/simple-package.json'))
  import exists = require('path-exists')
  import isWindows = require('is-windows')
  
  const IS_WINDOWS = isWindows()
  
  if (!caw() && !IS_WINDOWS) {
    process.env.VCR_MODE = 'cache'
  }
  
  test('bin files are found by lifecycle scripts', t => {
    const project = prepare(t, {
      scripts: {
        postinstall: 'hello-world-js-bin'
      },
      dependencies: {
        'hello-world-js-bin': '*'
      }
    })
  
    const result = execPnpmSync('install')
  
    t.equal(result.status, 0, 'installation was successfull')
    t.ok(result.stdout.toString().indexOf('Hello world!') !== -1, 'postinstall script was executed')
  
    t.end()
  })
  
  test('create a pnpm-debug.log file when the command fails', async function (t) {
    const project = prepare(t)
  
    const result = execPnpmSync('install', '@zkochan/i-do-not-exist')
  
    t.equal(result.status, 1, 'install failed')
  
    t.ok(await exists('pnpm-debug.log'), 'log file created')
  
    t.end()
  })
  