You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create 3 typescript packages using tsc compiler (packageA, packageB, packageC)
Import packageB in package A
Import packageC in packageB
Build.
Nx Report
npx nx report
> NX Report complete - copy this into the issue template
Node : 18.12.1
OS : darwin arm64
npm : 9.2.0
nx : 15.3.3
@nrwl/angular : Not Found
@nrwl/cypress : 15.3.3
@nrwl/detox : Not Found
@nrwl/devkit : 15.3.3
@nrwl/esbuild : Not Found
@nrwl/eslint-plugin-nx : 15.3.3
@nrwl/expo : Not Found
@nrwl/express : Not Found
@nrwl/jest : 15.3.3
@nrwl/js : 15.3.3
@nrwl/linter : 15.3.3
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : 15.0.2
@nrwl/nx-plugin : Not Found
@nrwl/react : 15.3.3
@nrwl/react-native : Not Found
@nrwl/rollup : 15.3.3
@nrwl/schematics : Not Found
@nrwl/storybook : 15.3.3
@nrwl/web : 15.3.3
@nrwl/webpack : 15.3.3
@nrwl/workspace : 15.3.3
typescript : 4.8.4
---------------------------------------
Local workspace plugins:
---------------------------------------
Community plugins:
### Failure Logs
_No response_
### Additional Information
_No response_
The text was updated successfully, but these errors were encountered:
See my comment in another issue where I listet everything #10227 (comment)
There are two similar issues open right now and in one its stated that there are no recent updates.
IMHO other executors could have the same issue because they also don't use the shallow option of calculateProjectDependencies. Only rollup has this working right now.
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
If we missed this issue please reply to keep it active.
Thanks for being a part of the Nx community! 🙏
Current Behavior
Given three buildable and publishable packages depending on each other:
Building package
A
generates a package.json with a dependency onB
andC
.Expected Behavior
Package
A
should only have dependency onB
.This issue here is that ALL dependencies in the graph are used:
https://github.com/nrwl/nx/blob/master/packages/js/src/executors/tsc/tsc.impl.ts#L168
Compared to @nrwl/angular:package which uses only topLevel dependencies:
nx/packages/angular/src/executors/package/package.impl.ts
Line 104 in 422c8c7
GitHub Repo
No response
Steps to Reproduce
Nx Report
The text was updated successfully, but these errors were encountered: