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

Add 'node_modules/.bin' folder to PATH when package.json is present #202

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

crapStone
Copy link
Contributor

@crapStone crapStone commented Oct 6, 2023

cargo leptos only searches for globally installed binaries.

This PR adds a check at the startup of cargo leptos that detects a package.json file and tries to add the <project_working_dir>/node_modules/.bin/ folder to the PATH environment variable.

@crapStone crapStone changed the title Add 'node_modules/.bin' folder to PATH when package.json is prresent Add 'node_modules/.bin' folder to PATH when package.json is present Oct 6, 2023
@gbj
Copy link
Contributor

gbj commented Oct 13, 2023

Looks good, thanks!

@gbj gbj merged commit 1fe83eb into leptos-rs:main Oct 13, 2023
8 checks passed
@crapStone crapStone deleted the fix/local-paths branch October 14, 2023 19:00
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.

2 participants