diff --git a/apps/backend/package.json b/apps/backend/package.json index 8438067e8..9fcc38cea 100644 --- a/apps/backend/package.json +++ b/apps/backend/package.json @@ -1,6 +1,6 @@ { "name": "@codemod-com/backend", - "version": "0.0.161", + "version": "0.0.162", "scripts": { "build": "tsc && node esbuild.config.js", "start": "node build/index.js", diff --git a/apps/backend/src/publishHandler.test.ts b/apps/backend/src/publishHandler.test.ts index b8ab5ed41..c1ac44f7d 100644 --- a/apps/backend/src/publishHandler.test.ts +++ b/apps/backend/src/publishHandler.test.ts @@ -204,6 +204,8 @@ describe("/publish route", async () => { ), engine: codemodRcContents.engine, publishedAt: MOCK_TIMESTAMP, + bucket: "codemod-test", + uploadKey: `codemod-registry/${hashDigest}/${codemodRcContents.version}/codemod.tar.gz`, }, author: { username: GET_USER_RETURN.user.username, diff --git a/apps/backend/src/publishHandler.ts b/apps/backend/src/publishHandler.ts index 9c0dfcbce..76bad9fde 100644 --- a/apps/backend/src/publishHandler.ts +++ b/apps/backend/src/publishHandler.ts @@ -413,6 +413,8 @@ export const publishHandler: RouteHandler<{ to: codemodRc.applicability?.to?.map((tuple) => tuple.join(" ")), engine: codemodRc.engine, publishedAt: createdAtTimestamp, + bucket, + uploadKey, }, author: { username,