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

[build-utils] De-couple zip file creation from Lambda class #7417

Merged
merged 3 commits into from
Feb 10, 2022

Conversation

TooTallNate
Copy link
Member

@TooTallNate TooTallNate commented Feb 10, 2022

Makes the Lambda class itself just a reference of the files that are needed to produce a zip file, and adds a createZip() function that does the actual zip file creation. This will allow the zip file creation to be done in the Vercel build container instead of directly in the Builder itself.

  • Adds files property to Lambda class
  • Adds createZip() function to Lambda class
  • Deprecates the createLambda() function (new Lambda() should be used instead)
  • Deprecates the zipBuffer property (only populated when createLambda() is used)
  • Removes the private FILES_SYMBOL symbol, since files is the same thing

Makes the `Lambda` class itself just a reference of the files that are
needed to produce a zip file, and adds a `createZip()` function that
does the actual zip file creation. This will allow the zip file creation
to be done in the Vercel build container instead of directly in the
Builder itself.

* Adds `files` property to `Lambda` class
* Adds `createZip()` function to `Lambda` class
* Deprecates the `createLambda()` function
* Deprecates the `zipBuffer` property (only populated when `createLambda()` is used)
* Removes the private `FILES_SYMBOL` symbol, since `files` is the same thing
@codecov
Copy link

codecov bot commented Feb 10, 2022

Codecov Report

Merging #7417 (2b542d1) into main (dc2d814) will not change coverage.
The diff coverage is 0.00%.

❗ Current head 2b542d1 differs from pull request most recent head 4a147b3. Consider uploading reports for the commit 4a147b3 to get more accurate results

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #7417   +/-   ##
=======================================
  Coverage   49.45%   49.45%           
=======================================
  Files         134      134           
  Lines        5381     5381           
  Branches     1350     1350           
=======================================
  Hits         2661     2661           
  Misses       2707     2707           
  Partials       13       13           
Impacted Files Coverage Δ
packages/cli/src/util/dev/builder.ts 66.66% <0.00%> (ø)

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 dc2d814...4a147b3. Read the comment docs.

@TooTallNate TooTallNate changed the title [built-utils] De-couple zip file creation from Lambda class [build-utils] De-couple zip file creation from Lambda class Feb 10, 2022
@TooTallNate TooTallNate added area: build-utils semver: minor PR contains new features labels Feb 10, 2022
@TooTallNate TooTallNate merged commit 34408a7 into main Feb 10, 2022
@TooTallNate TooTallNate deleted the update/build-utils-lambda-files branch February 10, 2022 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build-utils semver: minor PR contains new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants