From a86c2e383a65a8b47ea3b7a5c76b9e2417531a60 Mon Sep 17 00:00:00 2001 From: turgaysaba <22500853+sabaturgay@users.noreply.github.com> Date: Wed, 25 Aug 2021 18:17:05 +0300 Subject: [PATCH] fix: include files starting with a period on packaging (#7861) 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) {