Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(amplify-category-function): include files starting with a period on packaging #7861

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

sabaturgay
Copy link
Contributor

@sabaturgay sabaturgay commented Aug 3, 2021

Description of changes

I use prisma 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. But it will copy the unwanted files which is starting with period like .env . So I am not sure this is the best solution. I hope you will find this useful.

Description of how you validated changes

Manual

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

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.
@sabaturgay sabaturgay requested a review from a team as a code owner August 3, 2021 13:04
@sabaturgay sabaturgay closed this Aug 3, 2021
@sabaturgay sabaturgay deleted the patch-1 branch August 3, 2021 13:16
@sabaturgay sabaturgay restored the patch-1 branch August 3, 2021 13:19
@sabaturgay sabaturgay reopened this Aug 3, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #7861 (c0421a7) into master (28d49b4) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7861   +/-   ##
=======================================
  Coverage   53.27%   53.27%           
=======================================
  Files         555      555           
  Lines       28051    28051           
  Branches     5442     5442           
=======================================
  Hits        14945    14945           
  Misses      12121    12121           
  Partials      985      985           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28d49b4...c0421a7. Read the comment docs.

@siegerts siegerts added the first-time-contributor The contribution is the first for this user in the repo label Aug 3, 2021
@cjihrig cjihrig merged commit 870ad10 into aws-amplify:master Aug 25, 2021
jhockett pushed a commit that referenced this pull request Aug 25, 2021
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.
@github-actions
Copy link

github-actions bot commented Sep 2, 2021

👋 Hi, this pull request was referenced in the v5.4.0 release!

Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v5.4.0.

@github-actions github-actions bot added the referenced-in-release Issues referenced in a published release changelog label Sep 2, 2021
marcvberg pushed a commit to marcvberg/amplify-cli that referenced this pull request Oct 13, 2021
)

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first-time-contributor The contribution is the first for this user in the repo referenced-in-release Issues referenced in a published release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Function Packager: files or folders beginning with a dot(.) do not add to latest-build.zip
5 participants