-
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
Provide types for JSON output of --graph
#3283
Comments
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. |
Bump |
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 automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
up |
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. |
Up |
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. |
Just checked. Still the case. |
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. |
Hello bot |
printAffected
--graph
Hey all, I've rewritten this issue to be about the commands which have succeeded |
Hi @maxime1992 and @FrozenPandaz I've just raised a PR with the type exposed |
Sure thing @FrozenPandaz, thanks for improving the PR 👍 |
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. |
Description
The commands which generate a graph do not have a type that can be imported so that consumers can know the type of the data. The data is created in this function:
nx/packages/nx/src/command-line/graph/graph.ts
Line 1164 in 8cf69c4
Motivation
Nx is great and the CLI may be enough in some cases.
But when setting up a monorepo some people/company may need to have custom scripts running and thanks to NX we can get a JSON object which represents what has been affected.
On our side we need this and we ended up typing what we needed from the output.
I think it may be quite nice to have that exported by NX so that we can safely consume the JSON output of nx affected commands even we we update NX version.
Revisions
This issue was originally created for
print-affected
which has been deprecated. I have revised it for the newer commands.The text was updated successfully, but these errors were encountered: