diff --git a/libs/version-map.js b/libs/version-map.js index 12d7d31..071346e 100644 --- a/libs/version-map.js +++ b/libs/version-map.js @@ -33,8 +33,7 @@ console.log('\nWARNING: VersionMap running in dry run mode. No changes will actually be made.\n'); } this.registryPath = "registry/v2/registry.json"; - this.tagsPath = "registry/1/tags.json"; - this.newTagsPath = "tags/v2/tags.json"; + this.tagsPath = "tags/v2/tags.json"; } VersionMap.prototype.updateRegistry = function(registry, pkg) { @@ -162,8 +161,7 @@ VersionMap.prototype.uploadTags = function(tags) { - utils.putObject(tags, this.s3Client, this.bucket, this.tagsPath, this.dryRun); - return utils.putObject(tags, this.s3Client, this.bucket, this.newTagsPath, this.dryRun); + return utils.putObject(tags, this.s3Client, this.bucket, this.tagsPath, this.dryRun); }; /* diff --git a/src/version-map.coffee b/src/version-map.coffee index de86db1..fa04fbc 100644 --- a/src/version-map.coffee +++ b/src/version-map.coffee @@ -11,8 +11,7 @@ class VersionMap @dryRun = options.dryRun console.log '\nWARNING: VersionMap running in dry run mode. No changes will actually be made.\n' if @dryRun @registryPath = "registry/v2/registry.json" - @tagsPath = "registry/1/tags.json" - @newTagsPath = "tags/v2/tags.json" #TODO replace tagsPath once Janus uses new version + @tagsPath = "tags/v2/tags.json" # Updates the registry with the pkg package informations # Package has two required properties: name and version @@ -99,7 +98,6 @@ class VersionMap ### uploadTags: (tags) => utils.putObject(tags, @s3Client, @bucket, @tagsPath, @dryRun) - utils.putObject(tags, @s3Client, @bucket, @newTagsPath, @dryRun) #TODO remove once Janus uses new version ### Returns a tags object.