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(typescript): add build_test to ensure typecheck is run under --bu… #3196

Merged
merged 1 commit into from
Jan 8, 2022

Conversation

alexeagle
Copy link
Collaborator

…ild_tests_only

This is considered a feature, as it allows you to have a faster development mode where type-checking
is not on the critical path.
- `[name]_typecheck` - this target will fail to build if the type-checking fails, useful for CI.
- `[name]_test` - a [`build_test`](https://github.com/bazelbuild/bazel-skylib/blob/main/rules/build_test.bzl)
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe [name]_typecheck_test to be clear?

is not needed to produce the default outputs.
This is considered a feature, as it allows you to have a faster development mode where type-checking
is not on the critical path.
- `[name]_typecheck` - this target will fail to build if the type-checking fails, useful for CI.
Copy link
Collaborator

Choose a reason for hiding this comment

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

hmm. technically the build failure will be in the [name]_typings ts_project target and not the _typecheck target

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed the wording

@alexeagle alexeagle merged commit 2a966ad into stable Jan 8, 2022
@alexeagle alexeagle deleted the tsc_typecheck_test branch January 8, 2022 23:00
alexeagle added a commit that referenced this pull request Jan 9, 2022
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.

None yet

2 participants