Provide type for `printAffected`
See original GitHub issueDescription
printAffected
doesn’t have a type defined: https://github.com/nrwl/nx/blob/dcd6061604b3b9e7a233f06b6c0234caf0d51b5c/packages/workspace/src/command-line/print-affected.ts#L10-L34
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.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:8
Top Results From Across the Web
print-affected - CLI command - Nx
Prints the projects property from the print-affected output: ... Type: boolean ... Change the way Nx is calculating the affected command by providing...
Read more >Remove additional information saved into json using `nx print ...
Printing the nx print-affected into a file from docker is saving additional information apart from json which is causing issues .
Read more >Getting Started with Monorepo with Nx Nrwl - Rupesh Tiwari
You can store all the following package types in a single feed: npm, NuGet, Maven, Python, and Universal packages. Go to Azure Artifacts....
Read more >Documentation - Utility Types - TypeScript
Utility Types. TypeScript provides several utility types to facilitate common type transformations. These utilities are available globally. Awaited< ...
Read more >nrwl-nx/community - Gitter
how can i save the output of print-affected json to a file inside docker ? Please help very urgent . ... "format:write": "nx...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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! 🙏
Up