We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec33790 commit beaac79Copy full SHA for beaac79
src/commands/fix/pnpm-fix.ts
@@ -158,10 +158,11 @@ export async function pnpmFix(
158
? 'root'
159
: path.relative(rootPath, path.dirname(pkgJsonPath))
160
161
- const editablePkgJson = isWorkspaceRoot
162
- ? pkgEnvDetails.editablePkgJson
163
- : // eslint-disable-next-line no-await-in-loop
164
- await readPackageJson(pkgJsonPath, { editable: true })
+ // Always re-read the editable package.json to avoid stale mutations across iterations
+ // eslint-disable-next-line no-await-in-loop
+ const editablePkgJson = await readPackageJson(pkgJsonPath, {
+ editable: true
165
+ })
166
167
// Get current overrides for revert logic
168
const oldPnpmSection = editablePkgJson.content[PNPM] as
0 commit comments