Skip to content

fix(typescript): ts_project transpiler produces js_library#3187

Merged
alexeagle merged 1 commit into
stablefrom
ts_transpiler
Jan 6, 2022
Merged

fix(typescript): ts_project transpiler produces js_library#3187
alexeagle merged 1 commit into
stablefrom
ts_transpiler

Conversation

@alexeagle

Copy link
Copy Markdown
Collaborator

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

@alexeagle
alexeagle force-pushed the ts_transpiler branch 2 times, most recently from 78d76a4 to 3bbfe21 Compare January 5, 2022 23:31
files = all_files,
transitive_files = depset(
transitive = files_depsets + typings_depsets,
transitive = files_depsets,

Copy link
Copy Markdown
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
Copy Markdown
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

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@gregmagolan gregmagolan left a comment

Copy link
Copy Markdown
Collaborator

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