message: scripts/prepare-release: handle packages that were added since last release
diff: @@ -71,6 +71,7 @@ async function detectPatchVersionsForRef(repo, ref) {
  path.relative(repo.root.dir, pkg.dir),
  'package.json',
  );
  + try {
  const { stdout: pkgJsonStr } = await execFile('git', [
  'show',
  `${ref}:${pkgJsonPath}`,
  @@ -87,6 +88,15 @@ async function detectPatchVersionsForRef(repo, ref) {
  patchVersions.set(pkgJson.name, releasePkgJson.version);
  }
  }
  + } catch (error) {
  + if (
  + error.stderr?.match(/^fatal: Path .* exists on disk, but not in .*$/m)
  + ) {
  + console.log(`Skipping new package ${pkg.packageJson.name}`);
  + continue;
  + }
  + throw error;
  + }
  }
  return patchVersions;
  