diff --git a/packages/version/src/__tests__/update-lockfile-version.spec.js b/packages/version/src/__tests__/update-lockfile-version.spec.js index b43b46de..c4797830 100644 --- a/packages/version/src/__tests__/update-lockfile-version.spec.js +++ b/packages/version/src/__tests__/update-lockfile-version.spec.js @@ -161,7 +161,7 @@ describe('run install lockfile-only', () => { const lockFileOutput = await runInstallLockFileOnly('pnpm', cwd); - expect(execSpy).toHaveBeenCalledWith('pnpm', ['install', '--lockfile-only', '--fix-lockfile'], { cwd }); + expect(execSpy).toHaveBeenCalledWith('pnpm', ['install', '--lockfile-only', '--no-frozen-lockfile'], { cwd }); expect(lockFileOutput).toBe('pnpm-lock.yaml'); }); }); diff --git a/packages/version/src/lib/update-lockfile-version.ts b/packages/version/src/lib/update-lockfile-version.ts index 64307deb..d66505e1 100644 --- a/packages/version/src/lib/update-lockfile-version.ts +++ b/packages/version/src/lib/update-lockfile-version.ts @@ -131,7 +131,7 @@ export async function runInstallLockFileOnly( inputLockfileName = 'pnpm-lock.yaml'; if (await validateFileExists(path.join(cwd, inputLockfileName))) { log.verbose('lock', `updating lock file via "pnpm install --lockfile-only"`); - await exec('pnpm', ['install', '--lockfile-only', '--fix-lockfile'], { cwd }); + await exec('pnpm', ['install', '--lockfile-only', '--no-frozen-lockfile'], { cwd }); outputLockfileName = inputLockfileName; } break;