Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions patches/@changesets__cli@2.31.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/dist/changesets-cli.cjs.js b/dist/changesets-cli.cjs.js
index 9f0bd6c5f96011be225269a71365a878cb822bb7..bdfeb1dee761de629736e750a1d3f16eb1dedadc 100644
--- a/dist/changesets-cli.cjs.js
+++ b/dist/changesets-cli.cjs.js
@@ -870,7 +870,7 @@ async function infoAllow404(packageJson) {
// we check `npm info` before publishing but `npm info` can return stale data at times
// so we need to gracefully handle this situation
function isAlreadyPublishedError(output) {
- return output.includes("cannot publish over the previously published version");
+ return typeof output === "string" && output.includes("cannot publish over the previously published version");
}
// we have this so that we can do try a publish again after a publish without
// the call being wrapped in the npm request limit and causing the publishes to potentially never run
@@ -950,7 +950,7 @@ async function internalPublish(packageJson, opts, twoFactorState) {
let json = getLastJsonObjectFromString(stderr.toString()) || getLastJsonObjectFromString(stdout.toString());
if (json !== null && json !== void 0 && json.error) {
var _json$error$detail;
- if (json.error.code === "E403" && isAlreadyPublishedError(json.error.summary)) {
+ if (json.error.code === "E403" && (isAlreadyPublishedError(json.error.summary) || isAlreadyPublishedError(json.error.detail))) {
// we don't need to log anything here, it just turned out the version was already published so we gracefully exit the publish process
return {
result: "skipped"
5 changes: 3 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ patchedDependencies:
"@tanstack/query-core": patches/@tanstack__query-core.patch
typescript@6.0.3: patches/typescript.patch
"@sendgrid/mail": patches/@sendgrid__mail.patch
'@changesets/cli@2.31.0': patches/@changesets__cli@2.31.0.patch
Loading