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

Inject /node_modules/.bin into PATH to mimic npm/pnpm/yarn scripts behaviour #35

Closed
gajus opened this issue Mar 24, 2023 · 1 comment
Closed
Labels
enhancement New feature or request released

Comments

@gajus
Copy link
Owner

gajus commented Mar 24, 2023

At the moment, if spawn scripts are referencing locally installed npm executables, they are going to be not found.

spawn`tsx`

will produce "tsx program not found"

Users can workaround this by prefixing them with pnpm (or whatever package manager), e.g.

spawn`pnpm tsx`

However, we should consider matching pnpm behaviour and just inject the appropriate path.

@gajus gajus added the enhancement New feature or request label Mar 24, 2023
@gajus gajus closed this as completed in dfbb0f5 Mar 27, 2023
@github-actions
Copy link

🎉 This issue has been resolved in version 2.18.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

No branches or pull requests

1 participant