-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix port conflicts with functions:shell #3223
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
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.
LGTM after a few tiny cleanups + lodash removal.
src/functionsShellCommandAction.ts
Outdated
var initializeContext = function (context) { | ||
_.forEach(emulator.triggers, function (trigger) { | ||
const initializeContext = (context: any) => { | ||
_.forEach(emulator.triggers, (trigger) => { |
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.
Optional - it would be pretty easy to refactor this chunk to use plain JS instead of lodash, and then we're one step closer to removing the dependency for good
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.
I got rid of _.forEach
and _.includes
but _.set
with dot-separated path notation is a bit tricky so I left that. We'll probably need to create our own utils.set
to replace that throughout the codebase and that seems out of scope for this PR.
Description
Fixes #3210
Also I converted the file to
.ts
while I was in thereScenarios Tested
firebase.json
--port
flagSample Commands
N/A