fix(release): preserve older npm conflict code

This commit is contained in:
Victor Araújo
2026-07-21 23:25:45 -03:00
parent 9169a70184
commit 7f0b82f577
2 changed files with 6 additions and 5 deletions
+1
View File
@@ -35,6 +35,7 @@ describe("release publish", () => {
expect(isVersionAlreadyPublished("npm error code E409\nnpm error Cannot publish over existing version")).toBe(
true,
);
expect(isVersionAlreadyPublished("npm ERR! code E409")).toBe(true);
expect(isVersionAlreadyPublished("npm error code EPUBLISHCONFLICT")).toBe(true);
expect(isVersionAlreadyPublished("You cannot publish over the previously published versions: 1.2.3.")).toBe(true);
expect(isVersionAlreadyPublished("cannot publish over the previously published version")).toBe(false);