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

Improve error messages when the Vite executable is missing #41

Merged
merged 5 commits into from
Mar 19, 2021

Conversation

ElMassimo
Copy link
Owner

Description 📖

This pull request changes the default strategy to execute the Vite binary to provide better errors.

By default, it will check if node_modules/.bin/vite exists, falling back to $(npm bin)/vite.

A new viteBinPath option is available to provide a custom binary if the default strategy is not suitable.

Breaking Change 💥

This affects any projects relying on a globally installed version of Vite.

Using a global binary is not recommended, but it could be provided by setting:

VITE_RUBY_VITE_BIN_PATH=$(yarn global bin)/vite

Screenshots 📷

Screen Shot 2021-03-19 at 17 32 59

…`viteBinPath` config option.

BREAKING CHANGE: This affects any projects that were using a globally
installed version of Vite.

Using a global binary is not recommended, but it could be provided by
setting VITE_RUBY_VITE_BIN_PATH=$(yarn global bin)/vite
@ElMassimo ElMassimo added the enhancement New feature or request label Mar 19, 2021
@ElMassimo ElMassimo merged commit a79edc6 into main Mar 19, 2021
@ElMassimo ElMassimo deleted the better-errors branch March 19, 2021 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant