-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
core: build/package executors should include only implementation files for package.json#dependencies
generation from project-graph
#8641
Comments
package.json#dependencies
generation from project-graph
I think it's the same problem like in #8640. |
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. |
@egorderg the solution was integrated to |
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. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
This occurs in every executor related to packaging/building. For simplicity I'd describe behaviour for
@nrwl/node:package
executor.1. We have following dep-graph (contrived for simplicity)
now when running
nx run @griffel/jest-serializer:build
following package.json will be generated:
based on following dependency graph creation (
nx print-affected --target=build
):2. If we remove import statements for
@griffel/core
from implementation files of@griffel/jest-serializer
packagefollowing package.json will be generated:
based on following dependency graph creation (
nx print-affected --target=build
):3. Now only if we remove
@griffel/hello
from our test file we'll get no dependencies as expectedfollowing package.json will be generated:
based on following dependency graph creation (
nx print-affected --target=build
):Expected Behavior
package.json
generation executed while running package/build executors, dependency graph should be filtered/processed to include only implementation files for package.json generation.Based on our original dependency graph:
Following package.json should be generated:
.nxignore
should be included in filtering as currently it is omitted as well.Steps to Reproduce
Failure Logs
Environment
The text was updated successfully, but these errors were encountered: