-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Replace lodash utility with String native methods #7715
Conversation
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.
Great thanks @exoego, a worthwhile cleanup.
Still it appears negation was lost in two places (CI picked that as well)
@@ -13,7 +12,7 @@ module.exports = { | |||
path.join(this.serverless.config.servicePath || '.', '.serverless'); | |||
|
|||
// Only move the artifacts if it was requested by the user | |||
if (this.serverless.config.servicePath && !_.endsWith(packagePath, '.serverless')) { | |||
if (this.serverless.config.servicePath && packagePath.endsWith('.serverless')) { |
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.
If I see correctly negation was lost
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.
Fixed and squashed commits.
@@ -36,7 +35,7 @@ module.exports = { | |||
path.join(this.serverless.config.servicePath || '.', '.serverless'); | |||
|
|||
// Only move the artifacts if it was requested by the user | |||
if (this.serverless.config.servicePath && !_.endsWith(packagePath, '.serverless')) { | |||
if (this.serverless.config.servicePath && packagePath.endsWith('.serverless')) { |
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.
Same here
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.
Fixed and squashed commits.
6ce59aa
to
a2f3e98
Compare
Codecov Report
@@ Coverage Diff @@
## master #7715 +/- ##
==========================================
- Coverage 88.00% 87.99% -0.02%
==========================================
Files 245 245
Lines 9202 9201 -1
==========================================
- Hits 8098 8096 -2
- Misses 1104 1105 +1
Continue to review full report at Codecov.
|
@exoego is this ready to take? If so, please re-request review. Thank you! |
Ready to re-review. |
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.
Thank you @exoego !
See #7680 (comment)
Let's minimize lodash dependency where native ways are available.
require('lodash.pick')
)