7 Commits

Author SHA1 Message Date
Jack Stevenson
e32079ce3b
fix(js): skip tsc batch builds for implicit dependencies (#28840)
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
2024-11-14 07:59:27 +00:00
Emily Xiong
0b0df51263
chore(core): add batch description in cli (#19707) 2023-10-18 15:15:20 -04:00
Leosvel Pérez Espinosa
c785871b5c
docs(js): call out @nx/js:tsc batch executor being available from Nx 16.6.0 (#18467) 2023-08-11 12:46:47 +01:00
Leosvel Pérez Espinosa
bd71ce35a4
fix(js): fix misc issues in tsc batch executor (#18363) 2023-07-28 14:44:35 +01:00
Leosvel Pérez Espinosa
4f9f04fb96
docs(js): add docs about @nx/js:tsc batch execution (#18071) 2023-07-14 08:41:40 +01:00
Isaac Mann
afa5eb59fa
docs(core): document the @nrwl => @nx rescope (#16403)
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2023-04-27 18:14:59 -04:00
Chau Tran
bee29dd505
docs(js): executors examples (#12565)
Co-authored-by: Chau Tran <chautran@10.0.0.9>
2022-10-14 11:50:55 +00:00