Skip to content

Conversation

@paras-verma7454
Copy link

@paras-verma7454 paras-verma7454 commented Dec 26, 2025

Summary

Add strict runtime validation for the buildMode used by the new compiler’s build translator so that invalid LINGO_BUILD_MODE values fail fast with a clear error.

Changes

  • Validate the resolved buildMode and exit with an explicit error if it is not "translate" or "cache-only". This prevents confusing downstream failures when LINGO_BUILD_MODE is set incorrectly.

  • Slightly reformat several long log messages in build-translator.ts for improved readability while keeping their content unchanged.

Testing

Business logic tests added:

  • [Describe test 1 - what behavior it validates]
  • [Describe test 2 - what edge case it covers]
  • All tests pass locally

Checklist

  • Changeset added (if version bump needed)
  • Tests cover business logic (not just happy path)
  • No breaking changes (or documented below)

Closes #1709

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.

The Build Mode Environment Variable Needs Validation

1 participant