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

Feature - Support node_modules/.bin #31

Open
mcm-ham opened this issue Jun 2, 2023 · 4 comments
Open

Feature - Support node_modules/.bin #31

mcm-ham opened this issue Jun 2, 2023 · 4 comments

Comments

@mcm-ham
Copy link

mcm-ham commented Jun 2, 2023

Since a number of linters are npm packages it would be great to support node_modules/.bin in addition to $PATH so that we can add the various linters as devDependencies of the current project avoiding the need for developers to install them globally and we can control the version to avoid issues where different developers can be using different versions.

@oojacoboo
Copy link

Just add ./node_modules/.bin to your $PATH

@mcm-ham
Copy link
Author

mcm-ham commented Sep 8, 2023

That only works for a single project, not if you're dealing with multiple projects or repositories.

@oojacoboo
Copy link

@mcm-ham That's not true, it works for any directory where you have a node_modules directory located.

@mcm-ham
Copy link
Author

mcm-ham commented Sep 8, 2023

Ah missed that you were suggesting relative paths, it's a good thought. Unfortunately it didn't work for me, when I try adding process.cwd() to the extension it outputs / rather than the project folder which could explain why it doesn't work.

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

No branches or pull requests

2 participants