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
2 changes: 1 addition & 1 deletion patches/@changesets__cli@2.31.0.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ index 9f0bd6c5f96011be225269a71365a878cb822bb7..bdfeb1dee761de629736e750a1d3f16e
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))) {
+ if (json.error.code === "E403" && [json.error.summary, json.error.detail, json.error.message].some(isAlreadyPublishedError)) {
// 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"
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

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

6 changes: 5 additions & 1 deletion scripts/stagePublishPackage.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ if (command === "prepack") {

const packOutput = run("npm", ["pack", "--dry-run", "--json", "--ignore-scripts"])
const parsedPack = JSON.parse(packOutput)
const pack = Array.isArray(parsedPack) ? parsedPack[0] : parsedPack
const pack = Array.isArray(parsedPack)
? parsedPack[0]
: parsedPack.files !== undefined
? parsedPack
: parsedPack[packageJson.name]
if (pack === undefined || !Array.isArray(pack.files)) {
throw new Error("npm pack --json returned an unsupported payload")
}
Expand Down
Loading