Skip to content

Commit

Permalink
Look for an exact match of version+platform when detecting duplicates
Browse files Browse the repository at this point in the history
Fix #885
  • Loading branch information
roblourens authored Aug 1, 2023
1 parent 8deb0f6 commit 0ef9ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async function _publish(packagePath: string, manifest: Manifest, options: IInter
if (extension && extension.versions) {
const versionExists = extension.versions.some(v =>
(v.version === manifest.version) &&
(options.target ? v.targetPlatform === options.target : true));
(v.targetPlatform === options.target));

if (versionExists) {
if (options.skipDuplicate) {
Expand Down

0 comments on commit 0ef9ec2

Please sign in to comment.