hunk.code_window: import diable = require('diable')
   const pnpm = require.resolve('pnpm/bin/pnpm.js', { paths: [__dirname] })
   export default (storePath: string) => {
     return diable.daemonize(pnpm, ['server', 'start', '--store-dir', storePath], { stdio: 'inherit' })
   }
hunk.labels: keep keep replace keep keep keep keep
hunk.after_edit: const pnpm = require.main!.filename
  
hunk.file_path: packages/store-connection-manager/src/runServerInBackground.ts
hunk.type: replace
file: import { REGISTRY_MOCK_PORT } from '@pnpm/registry-mock'
  
  const REGISTRY = `http://localhost:${REGISTRY_MOCK_PORT}`
  
  export const DEFAULT_OPTS = {
    alwaysAuth: false,
    argv: {
      original: [],
    },
    bail: false,
    ca: undefined,
    cert: undefined,
    cliOptions: {},
    fetchRetries: 2,
    fetchRetryFactor: 90,
    fetchRetryMaxtimeout: 90,
    fetchRetryMintimeout: 10,
    filter: [] as string[],
    global: false,
    httpsProxy: undefined,
    include: {
      dependencies: true,
      devDependencies: true,
      optionalDependencies: true,
    },
    independentLeaves: false,
    key: undefined,
    linkWorkspacePackages: true,
    localAddress: undefined,
    lock: false,
    lockStaleDuration: 90,
    networkConcurrency: 16,
    offline: false,
    pending: false,
    pnpmfile: './pnpmfile.js',
    proxy: undefined,
    rawConfig: { registry:  REGISTRY },
    rawLocalConfig: {},
    registries: { default: REGISTRY },
    registry: REGISTRY,
    sort: true,
    storeDir: '../store',
    strictSsl: false,
    tag: 'latest',
    userAgent: 'pnpm',
    useRunningStoreServer: false,
    useStoreServer: false,
    workspaceConcurrency: 4,
  }
  