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

Fix npx command resolution in asdf-nodejs #406

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bamboo5-dot
Copy link

@bamboo5-dot bamboo5-dot commented Dec 24, 2024

No description provided.

@Stratus3D
Copy link
Member

@augustobmoura can you take a look at this one?

@augustobmoura
Copy link
Member

Hi @bamboo5-dot 👋

What is the purpose of wrapping npx on a custom shim? What issue this is trying to fix?

We are wrapping npm so we can automatically reshim after global installs. AFAIK npx doesn't introduce any global binaries that need reshimming.

@@ -149,4 +195,17 @@ wrap_npm_if_reshim_is_needed() {
fi
}

wrap_npx_if_reshim_is_needed() {
Copy link
Member

Choose a reason for hiding this comment

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

I don't see this function being called anywhere, should it be called somewhere else? Also, I see that the implementation is very similar to wrap_npm_if_reshim_is_needed, maybe we could rewrite the other function to wrap both npm and npx, wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants