pnpm 12 needs the packageManagerDependencies entries in the lockfile; without them --frozen-lockfile fails.