async function setup(cwd) {
  // assume 'install' is the subcommand on any package manager
  await exec(COREPACK_BIN, [LAVAMOAT_PM, 'install'], { cwd })
  await exec(COREPACK_BIN, [LAVAMOAT_PM, 'run', 'setup'], { cwd })

  if (os.platform() === 'darwin' && os.arch() === 'arm64') {
    await setupAppleSilicon(cwd)
  }

  await exec(
    process.execPath,
    [require.resolve('../src/cli'), '-a', 'index.js'],
    {
      cwd,
    }
  )
}
Install a project's deps via a package manager, run the `setup` script, then
execute `lavamoat` on the `index.js` file.

@param {string} cwd - Project dir
@returns {Promise<void>}