Skip to content

Commit

Permalink
feat: allow publishing universal target alongside platform specific t…
Browse files Browse the repository at this point in the history
…argets (#790)

fixes #785
  • Loading branch information
joaomoreno authored Dec 2, 2022
1 parent 8c1b1a0 commit ab8770c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
Expand Down

0 comments on commit ab8770c

Please sign in to comment.