Skip to content

Commit

Permalink
Merge pull request #236 from ghiscoding/bugfix/lockfile-no-frozen-loc…
Browse files Browse the repository at this point in the history
…kfile

fix(version): use `--no-frozen-lockfile` instead of `--fix-lockfile`, fixes #234
  • Loading branch information
ghiscoding committed Jun 30, 2022
2 parents 9f1ad41 + a6120b9 commit e032e66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/version/src/lib/update-lockfile-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e032e66

Please sign in to comment.