hunk.code_window:   if (!supportedCmds.has(cmd)) {
       spawnSync('npm', argv, { stdio: 'inherit' })
       return Promise.resolve()
     }
     if (cli.flags.debug) {
       process.env.DEBUG = 'pnpm:*'
  
hunk.labels: keep keep keep keep add keep keep
hunk.after_edit:   cli.flags.quiet = cli.flags.quiet || cli.flags.debug || isCI
  
hunk.file_path: bin/pnpm.js
hunk.type: add
file: 'use strict'
  const join = require('path').join
  const writeFileSync = require('fs').writeFileSync
  const readFileSync = require('fs').readFileSync
  
  module.exports = function storeJsonController (storePath) {
    const storeJsonPath = join(storePath, 'store.json')
  
    return {
      read () {
        try {
          return JSON.parse(readFileSync(storeJsonPath, 'utf8'))
        } catch (err) {
          return {}
        }
      },
      save (storeJson) {
        writeFileSync(storeJsonPath, JSON.stringify(storeJson, null, 2), 'utf8')
      }
    }
  }
  