Skip to content

Commit ab8770c

Browse files
authored
feat: allow publishing universal target alongside platform specific targets (#790)
fixes #785
1 parent 8c1b1a0 commit ab8770c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/publish.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,6 @@ async function _publish(packagePath: string, manifest: Manifest, options: IInter
176176
log.done(`Version ${manifest.version} is already published. Skipping publish.`);
177177
return;
178178
}
179-
if (!options.target) {
180-
throw new Error(`${description} already exists.`);
181-
}
182-
183-
if (sameVersion.some(v => !v.targetPlatform)) {
184-
throw new Error(`${name} (no target) v${manifest.version} already exists.`);
185-
}
186179

187180
if (sameVersion.some(v => v.targetPlatform === options.target)) {
188181
throw new Error(`${description} already exists.`);

0 commit comments

Comments
 (0)