-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat: Move datadog hook back to before:package:createDeploymentArtifa… #404
Conversation
…cts instead of after:package:Initialize
Codecov Report
@@ Coverage Diff @@
## master #404 +/- ##
=======================================
Coverage 75.43% 75.43%
=======================================
Files 11 11
Lines 871 871
Branches 271 271
=======================================
Hits 657 657
Misses 157 157
Partials 57 57
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple small changes in the readme
Co-authored-by: Alicia Scott <[email protected]>
Co-authored-by: Alicia Scott <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good thanks!
…cts instead of after:package:Initialize
What does this PR do?
Had a great discussion w/ the author of serverless-plugin-warmup and realized we could probably fix the warmup issues with two changes:
back
in the logical order of hooks fromafter:package:initialize
tobefore:package:createDeploymentArtifacts
.This is necessary to cooperate with the
warmup
plugin which needs to inject actual code after bundlers like webpack run.Our library only sets config, so we only need to move the hook here to accommodate
serverless-plugin-warmup
.Reasoning from author:
serverless-plugin-warmup
. I've added this in the readme.Motivation
Fully fixes our side of juanjoDiaz/serverless-plugin-warmup#231
Testing Guidelines
I ran this locally and tested to confirm it packages valid cloudformation for the warmer as well as my other function in the stack:
I manually added the
ASTUYVE
line into a local build ofserverless-plugin-warmup
to verify.Additional Notes
Types of changes
Check all that apply