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(js): skip tsc batch builds for implicit dependencies #28840

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

Conversation

cogwirrel
Copy link

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:

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 to use my local version, and built successfully in batch mode.

Related Issue(s)

Fixes #28839

Implicit dependencies are not referenced in code and therefore TSC incremental builds are not
applicable

closed nrwl#28839
Copy link

vercel bot commented Nov 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Nov 8, 2024 1:35am

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.

@nx/js:tsc executor is required for implicitDependencies in batch mode
1 participant