hunk.code_window:   switch (logObj.code) {
       case 'EBADPLATFORM':
         return autozoom(currentPrefix, logObj['prefix'], formatWarn(`Unsupported system. Skipping dependency ${logObj.pkgId}`))
       case 'ENOTSUP':
  
hunk.labels: keep keep replace keep
hunk.after_edit:       return autozoom(
           currentPrefix,
           logObj['prefix'],
           formatWarn(`Unsupported system. Skipping dependency ${logObj.pkgId}`),
           opts,
         )
  
hunk.file_path: packages/default-reporter/src/reporterForClient.ts
hunk.type: replace
file: import binify from '@pnpm/package-bins'
  import path = require('path')
  import rimraf = require('rimraf-then')
  import {rootLogger} from './loggers'
  import {fromDir as safeReadPkgFromDir} from './safeReadPkg'
  
  export default async function removeTopDependency (
    dependency: {
      dev: boolean,
      name: string,
      optional: boolean,
    },
    opts: {
      bin: string,
      dryRun?: boolean,
      modules: string,
      muteLogs?: boolean,
      prefix: string,
    },
  ) {
    const results = await Promise.all([
      removeBins(dependency.name, opts),
      !opts.dryRun && rimraf(path.join(opts.modules, dependency.name)),
    ])
  
    const uninstalledPkg = results[0]
    if (!opts.muteLogs) {
      rootLogger.debug({
        prefix: opts.prefix,
        removed: {
          dependencyType: dependency.dev && 'dev' || dependency.optional && 'optional' || 'prod',
          name: dependency.name,
          version: uninstalledPkg && uninstalledPkg.version,
        },
      })
    }
  }
  
  async function removeBins (
    uninstalledPkg: string,
    opts: {
      dryRun?: boolean,
      modules: string,
      bin: string,
    },
  ) {
    const uninstalledPkgPath = path.join(opts.modules, uninstalledPkg)
    const uninstalledPkgJson = await safeReadPkgFromDir(uninstalledPkgPath)
  
    if (!uninstalledPkgJson) return
    const cmds = await binify(uninstalledPkgJson, uninstalledPkgPath)
  
    if (!opts.dryRun) {
      await Promise.all(
        cmds.map((cmd) => path.join(opts.bin, cmd.name)).map(rimraf),
      )
    }
  
    return uninstalledPkgJson
  }
  