File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,7 @@ export async function npmFix(
263
263
const editablePkgJson = await readPackageJson ( pkgJsonPath , {
264
264
editable : true ,
265
265
} )
266
+ const fixedVersions = new Set < string > ( )
266
267
267
268
let hasAnnouncedWorkspace = false
268
269
let workspaceLogCallCount = logger . logCallCount
@@ -301,12 +302,13 @@ export async function npmFix(
301
302
)
302
303
continue infosLoop
303
304
}
304
-
305
+ if ( fixedVersions . has ( newVersion ) ) {
306
+ continue infosLoop
307
+ }
305
308
if ( semver . gte ( oldVersion , newVersion ) ) {
306
309
debugFn ( `skip: ${ oldId } is >= ${ newVersion } ` )
307
310
continue infosLoop
308
311
}
309
-
310
312
if (
311
313
activeBranches . find (
312
314
b =>
@@ -379,6 +381,7 @@ export async function npmFix(
379
381
await runScript ( testScript , [ ] , { spinner, stdio : 'ignore' } )
380
382
}
381
383
spinner ?. success ( `Fixed ${ name } in ${ workspace } .` )
384
+ fixedVersions . add ( newVersion )
382
385
} else {
383
386
errored = true
384
387
}
Original file line number Diff line number Diff line change @@ -365,6 +365,8 @@ export async function pnpmFix(
365
365
const editablePkgJson = await readPackageJson ( pkgJsonPath , {
366
366
editable : true ,
367
367
} )
368
+ const fixedVersions = new Set < string > ( )
369
+
368
370
// Get current overrides for revert logic.
369
371
const oldPnpmSection = editablePkgJson . content [ PNPM ] as
370
372
| StringKeyValueObject
@@ -410,12 +412,13 @@ export async function pnpmFix(
410
412
)
411
413
continue infosLoop
412
414
}
413
-
415
+ if ( fixedVersions . has ( newVersion ) ) {
416
+ continue infosLoop
417
+ }
414
418
if ( semver . gte ( oldVersion , newVersion ) ) {
415
419
debugFn ( `skip: ${ oldId } is >= ${ newVersion } ` )
416
420
continue infosLoop
417
421
}
418
-
419
422
if (
420
423
activeBranches . find (
421
424
b =>
@@ -553,6 +556,7 @@ export async function pnpmFix(
553
556
await runScript ( testScript , [ ] , { spinner, stdio : 'ignore' } )
554
557
}
555
558
spinner ?. success ( `Fixed ${ name } in ${ workspace } .` )
559
+ fixedVersions . add ( newVersion )
556
560
} else {
557
561
errored = true
558
562
}
You can’t perform that action at this time.
0 commit comments