Skip to content

Commit 53f396f

Browse files
committed
Use --no-frozen-lockfile for pnpm install
1 parent 1042a5b commit 53f396f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/commands/fix/pnpm-fix.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,10 @@ export async function pnpmFix(
237237
// eslint-disable-next-line no-await-in-loop
238238
await editablePkgJson.save()
239239
// eslint-disable-next-line no-await-in-loop
240-
await runAgentInstall(pkgEnvDetails, { spinner })
240+
await runAgentInstall(pkgEnvDetails, {
241+
args: ['--no-frozen-lockfile'],
242+
spinner
243+
})
241244

242245
if (test) {
243246
spinner?.info(`Testing ${fixSpec}`)
@@ -292,7 +295,10 @@ export async function pnpmFix(
292295
// eslint-disable-next-line no-await-in-loop
293296
await editablePkgJson.save()
294297
// eslint-disable-next-line no-await-in-loop
295-
await runAgentInstall(pkgEnvDetails, { spinner })
298+
await runAgentInstall(pkgEnvDetails, {
299+
args: ['--no-frozen-lockfile'],
300+
spinner
301+
})
296302
spinner?.stop()
297303
logger.error(`Failed to fix ${oldSpec}`)
298304
}

0 commit comments

Comments
 (0)