From ab8770ce20f2690cb8f73491d2666ba885c2b563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moreno?= Date: Fri, 2 Dec 2022 14:32:52 +0100 Subject: [PATCH] feat: allow publishing universal target alongside platform specific targets (#790) fixes #785 --- src/publish.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/publish.ts b/src/publish.ts index 27123db4..d76abab8 100644 --- a/src/publish.ts +++ b/src/publish.ts @@ -176,13 +176,6 @@ async function _publish(packagePath: string, manifest: Manifest, options: IInter log.done(`Version ${manifest.version} is already published. Skipping publish.`); return; } - if (!options.target) { - throw new Error(`${description} already exists.`); - } - - if (sameVersion.some(v => !v.targetPlatform)) { - throw new Error(`${name} (no target) v${manifest.version} already exists.`); - } if (sameVersion.some(v => v.targetPlatform === options.target)) { throw new Error(`${description} already exists.`);