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

Swap emulator Node runtime discovery to favor local cache #2740

Merged
merged 12 commits into from Oct 28, 2020

Conversation

abeisgoat
Copy link
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).

@google-cla google-cla bot added the cla: yes Manual indication that this has passed CLA. label Oct 23, 2020
@abeisgoat
Copy link
Contributor Author

abeisgoat commented Oct 23, 2020

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

Copy link
Contributor

@samtstern samtstern left a comment

Choose a reason for hiding this comment

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

Small nits but LGTM

src/emulator/functionsEmulator.ts Outdated Show resolved Hide resolved
@samtstern
Copy link
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.

None yet

2 participants