-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(js): skip tsc batch builds for implicit dependencies #28840
fix(js): skip tsc batch builds for implicit dependencies #28840
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 5f36e9a. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 4 targets
Sent with 💌 from NxCloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
It looks good to me in general. I just left a comment with a grammar change. Please remember to run pnpm documentation
to re-generate the docs.
Implicit dependencies are not referenced in code and therefore TSC incremental builds are not applicable closed nrwl#28839
8d6a0a0
to
6753e9f
Compare
Thanks so much for the review! I've updated the wording in the docs :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Implicit dependencies are not referenced in code and therefore TSC incremental builds are not applicable. ## Current Behavior A project using the `@nx/js:tsc` executor will fail to build if it has implicit dependencies on projects which do not use the `@nx/js:tsc` executor. To reproduce: * Clone https://github.com/cogwirrel/nx-tsc-batch-implicit-deps-example * `pnpm i && pnpm nx run-many --target build --batch --all` ## Expected Behavior - Implicit dependencies that do not use the `@nx/js:tsc` executor are permitted. For example, a TypeScript project may implicitly depend on a Python project, but the TypeScript project should still be buildable in batch mode. - Projects using the `@nx/js:tsc` executor will still fail to build if they have explicit dependencies on projects which do not use the `@nx/js:tsc` executor. Tested by publishing to the local registry, upgrading the [example repo](https://github.com/cogwirrel/nx-tsc-batch-implicit-deps-example) to use my local version, and built successfully in batch mode. ## Related Issue(s) Fixes #28839 (cherry picked from commit e32079c)
Implicit dependencies are not referenced in code and therefore TSC incremental builds are not applicable.
Current Behavior
A project using the
@nx/js:tsc
executor will fail to build if it has implicit dependencies on projects which do not use the@nx/js:tsc
executor.To reproduce:
pnpm i && pnpm nx run-many --target build --batch --all
Expected Behavior
@nx/js:tsc
executor are permitted. For example, a TypeScript project may implicitly depend on a Python project, but the TypeScript project should still be buildable in batch mode.@nx/js:tsc
executor will still fail to build if they have explicit dependencies on projects which do not use the@nx/js:tsc
executor.Tested by publishing to the local registry, upgrading the example repo to use my local version, and built successfully in batch mode.
Related Issue(s)
Fixes #28839