Move skipBadPublishes() -> calculate-versions#450
Move skipBadPublishes() -> calculate-versions#450jablko wants to merge 1 commit intomicrosoft:mainfrom
Conversation
c7187a7 to
f31dd40
Compare
c3908b7 to
3bccd9b
Compare
|
With the new method of deprecation, I think the right thing is to remove skipBadPublishes entirely since it existed to skip the fallout from the publish/deprecate race condition on npm. |
|
@sandersn Are there any other ways for a I can imagine some other ways in theory it could happen (the JS package adds types in a patch version and our patch version is already greater, they add types in a new major/minor but we publish a corresponding You're right about removing |
a1c961d to
bee9e20
Compare
Can we move skipBadPublishes() to the calculate-versions script, instead of calculating the incipient stub version from cached npm info twice, in generate-packages and publish-packages?
skipBadPublishes() calculates the version of the not-needed stub that we're about to publish. It depends on calculate-versions for cached npm-info. For regular packages, calculate-versions is where we actually perform that step (of figuring out the version we're about to publish).
What I did was: