Skip to content

Swap emulator Node runtime discovery to favor local cache#2740

Merged
abeisgoat merged 12 commits into
masterfrom
ah/functions-emulator-discover-npm-node
Oct 28, 2020
Merged

Swap emulator Node runtime discovery to favor local cache#2740
abeisgoat merged 12 commits into
masterfrom
ah/functions-emulator-discover-npm-node

Conversation

@abeisgoat

Copy link
Copy Markdown
Contributor

Right now we always assume the healthiest node install you have is the global one, this isn't the case when running in firepit, so I've swapped the preference to prefer any version of node installed to node_modules (if it exists and matches the requested runtime version).

@abeisgoat abeisgoat requested a review from samtstern October 23, 2020 18:09
@google-cla google-cla Bot added the cla: yes Manual indication that this has passed CLA. label Oct 23, 2020
@abeisgoat

abeisgoat commented Oct 23, 2020

Copy link
Copy Markdown
Contributor Author

Addresses issues of #2380 so the developer is given the commands to resolve the issue when running in firepit

@samtstern samtstern left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nits but LGTM

Comment thread src/emulator/functionsEmulator.ts Outdated
@samtstern

Copy link
Copy Markdown
Contributor

@abeisgoat don't forget a CHANGELOG entry

@abeisgoat abeisgoat merged commit 6943586 into master Oct 28, 2020
@abeisgoat abeisgoat deleted the ah/functions-emulator-discover-npm-node branch October 28, 2020 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Manual indication that this has passed CLA.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants