hunk.code_window:       tempy: 0.5.0
         write-json-file: 4.0.0
     packages/parse-cli-args:
       dependencies:
         '@pnpm/find-workspace-dir': 'link:../find-workspace-dir'
         didyoumean2: 4.0.0
         nopt: 4.0.3
       devDependencies:
         '@pnpm/parse-cli-args': 'link:'
         '@types/nopt': 3.0.29
       specifiers:
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:       didyoumean2: 4.1.0
  
hunk.file_path: pnpm-lock.yaml
hunk.type: replace
file: import { DependencyManifest } from '@pnpm/types'
  import loadJsonFile = require('load-json-file')
  import path = require('path')
  
  const defaultManifest = {
    name: 'unknown',
    version: '0.0.0',
  }
  let pkgJson
  try {
    pkgJson = {
      ...defaultManifest,
      ...loadJsonFile.sync<DependencyManifest>(
        path.join(path.dirname(require.main!.filename), '../package.json')
      ),
    }
  } catch (err) {
    pkgJson = defaultManifest
  }
  
  const packageManager = {
    name: pkgJson.name,
    // Never a prerelease version
    stableVersion: pkgJson.version.includes('-')
      ? pkgJson.version.substr(0, pkgJson.version.indexOf('-'))
      : pkgJson.version,
    // This may be a 3.0.0-beta.2
    version: pkgJson.version,
  }
  export default packageManager
  