Skip to content

Commit

Permalink
Merge pull request #886 from microsoft/roblou/fixPlatCheck
Browse files Browse the repository at this point in the history
Look for an exact match of version+platform when detecting duplicates
  • Loading branch information
roblourens authored Aug 4, 2023
2 parents 8deb0f6 + aa2113d commit a6187b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vscode/vsce",
"version": "2.20.0",
"version": "2.20.1",
"description": "VSCode Extension Manager",
"repository": {
"type": "git",
Expand Down
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 a6187b3

Please sign in to comment.