From c0421a74aba117b0f5d792a3b0a9a191b8f313a8 Mon Sep 17 00:00:00 2001 From: turgaysaba <22500853+sabaturgay@users.noreply.github.com> Date: Tue, 3 Aug 2021 15:56:13 +0300 Subject: [PATCH] Include files starting with a period on packaging I use prisma(https://www.prisma.io/) with lambda function and it creates node_modules/.prisma folder to add query-engines. When packaging process, Amplify does not include this folder into build.zip . Adding `dot: true` option to archiver will solve this issue. I hope you will find this useful. --- .../src/provider-utils/awscloudformation/utils/zipResource.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/amplify-category-function/src/provider-utils/awscloudformation/utils/zipResource.ts b/packages/amplify-category-function/src/provider-utils/awscloudformation/utils/zipResource.ts index b25eb9b46c4..b28eb19c1f0 100644 --- a/packages/amplify-category-function/src/provider-utils/awscloudformation/utils/zipResource.ts +++ b/packages/amplify-category-function/src/provider-utils/awscloudformation/utils/zipResource.ts @@ -19,6 +19,7 @@ export const zipPackage = (zipEntries: ZipEntry[], packageFileName: string): Pro zip.glob('**/*', { cwd: entry.sourceFolder, ignore: entry.ignoreFiles, + dot: true, }); } if (entry.packageFolder) {