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): ts_project transpiler produces js_library #3187

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

alexeagle
Copy link
Collaborator

This is needed so the .js files produced by the alternate transpiler
are passed down the dependency graph.

runfiles = ctx.runfiles(
files = all_files,
transitive_files = depset(
transitive = files_depsets + typings_depsets,
transitive = files_depsets,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this reverts #2547
which I think was a mistake, since it makes type-checking eager for a js_library, and it shouldn't be.
/cc @Aghassi

Copy link
Collaborator

Choose a reason for hiding this comment

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

Reverted in #3189 for reference

@alexeagle alexeagle force-pushed the ts_transpiler branch 2 times, most recently from 2a2d0f7 to 3cf389b Compare January 6, 2022 01:33
ts_project(
name = "transpile_with_typeerror",
srcs = ["typeerror.ts"],
# The transpile_with_typeerror.check target will have a build failure
Copy link
Collaborator

Choose a reason for hiding this comment

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

How does the build failure get ignored on CI with this one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the manual tag gets propagated to the build targets, so we don't run them. The test explicitly asks for the js_library which passes because typecheck action doesn't run

Copy link
Collaborator

Choose a reason for hiding this comment

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

🤦 I was starring right at it and didn't see the "manual" tag

This is needed so the .js files produced by the alternate transpiler
are passed down the dependency graph.
Copy link
Collaborator

@gregmagolan gregmagolan left a comment

Choose a reason for hiding this comment

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

🌮 🚀

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.

2 participants