From 6a1c56d61abb65ccfb11d0835e3cf88881c6fd13 Mon Sep 17 00:00:00 2001 From: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com> Date: Tue, 31 Oct 2023 12:11:04 -0400 Subject: [PATCH] publish adapter-nextjs to tag api-v6-models (#12476) --- .../__tests__/api/generateServerClient.test.ts | 5 +++-- packages/adapter-nextjs/package.json | 1 - packages/aws-amplify/data/package.json | 7 +++++++ packages/aws-amplify/data/server/package.json | 7 +++++++ 4 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 packages/aws-amplify/data/package.json create mode 100644 packages/aws-amplify/data/server/package.json diff --git a/packages/adapter-nextjs/__tests__/api/generateServerClient.test.ts b/packages/adapter-nextjs/__tests__/api/generateServerClient.test.ts index 545d170f8ef..8920cc3022a 100644 --- a/packages/adapter-nextjs/__tests__/api/generateServerClient.test.ts +++ b/packages/adapter-nextjs/__tests__/api/generateServerClient.test.ts @@ -49,8 +49,9 @@ describe('generateServerClientUsingCookies', () => { const mockedRes = NextApiResponseMock; expect(() => { - generateServerClientUsingCookies({ - // @ts-expect-error + // as any here to avoid type error from passing invalid input. + // this tests runtime exception + (generateServerClientUsingCookies as any)({ request: mockedReq, response: mockedRes, }); diff --git a/packages/adapter-nextjs/package.json b/packages/adapter-nextjs/package.json index 9bac9ec7c1c..017555dc288 100644 --- a/packages/adapter-nextjs/package.json +++ b/packages/adapter-nextjs/package.json @@ -1,6 +1,5 @@ { "author": "Amazon Web Services", - "private": true, "name": "@aws-amplify/adapter-nextjs", "description": "The adapter for the supporting of using Amplify APIs in Next.js.", "peerDependencies": { diff --git a/packages/aws-amplify/data/package.json b/packages/aws-amplify/data/package.json new file mode 100644 index 00000000000..21de8ec7edf --- /dev/null +++ b/packages/aws-amplify/data/package.json @@ -0,0 +1,7 @@ +{ + "name": "aws-amplify/data", + "main": "../lib/api/index.js", + "browser": "../lib-esm/api/index.js", + "module": "../lib-esm/api/index.js", + "typings": "../lib-esm/api/index.d.ts" +} diff --git a/packages/aws-amplify/data/server/package.json b/packages/aws-amplify/data/server/package.json new file mode 100644 index 00000000000..39a305bccab --- /dev/null +++ b/packages/aws-amplify/data/server/package.json @@ -0,0 +1,7 @@ +{ + "name": "aws-amplify/data/server", + "main": "../../lib/api/server.js", + "browser": "../../lib-esm/api/server.js", + "module": "../../lib-esm/api/server.js", + "typings": "../../lib-esm/api/server.d.ts" +}