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: propagate build error and check if js files exist #297

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

Conversation

LeNei
Copy link

@LeNei LeNei commented Jan 12, 2025

Context & Description

This PR aims to fix the command tuono build not propagating errors. It also adds checks for commands executing scripts if said script exists.

Closes: #278

@LeNei LeNei requested a review from Valerioageno as a code owner January 12, 2025 13:48
@Valerioageno Valerioageno added the enhancement New feature or request label Jan 12, 2025
@marcalexiei marcalexiei added the rust Requires rust knowledge label Jan 12, 2025
Copy link
Member

@Valerioageno Valerioageno left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Changes look perfect!

I'd like to ask you also to introduce two test cases for checking that the scripts exist (checking the vite failure is too complex right now; same for the tuono dev command).

To do it, I'd like to ask you to:

  1. rename crates/tuono/tests/cli_tests.rs in crates/tuono/tests/cli_build.rs
  2. Add a test case for testing that the BUILD_JS_SCRIPT does not exist
  3. Add a test case for testing that the BUILD_TUONO_CONFIG does not exist

Let me know if I can support you in any way!

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

Successfully merging this pull request may close these issues.

[Bug]: tuono build can succeed on build failure
3 participants