Skip to content

refactor(@angular/build): align environment option parsing with CLI package #30909

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

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

Conversation

clydin
Copy link
Member

@clydin clydin commented Aug 13, 2025

The environment options in the build package are updated to align with the tristate parsing logic and environment variable checks found in the CLI package. This change introduces a parseTristate function to handle 'true', 'false', and undefined values from environment variables, providing more consistent behavior across the two packages.

…ackage

The environment options in the build package are updated to align with the tristate parsing logic and environment variable checks found in the CLI package. This change introduces a `parseTristate` function to handle 'true', 'false', and undefined values from environment variables, providing more consistent behavior across the two packages.
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Aug 13, 2025
return false;
}

return undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth adding a TODO here and/or to log a warning? Or is this mostly unreachable because other things would intercept --flag=treu already?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: review The PR is still awaiting reviews from at least one requested reviewer area: @angular/build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants