Skip to content

Commit

Permalink
fix: include files starting with a period on packaging (#7861)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sabaturgay authored and jhockett committed Aug 25, 2021
1 parent 185f905 commit a86c2e3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a86c2e3

Please sign in to comment.