question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide type for `printAffected`

See original GitHub issue

Description

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:open
  • Created 3 years ago
  • Reactions:3
  • Comments:8

github_iconTop GitHub Comments

2reactions
github-actions[bot]commented, Aug 14, 2022

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! 🙏

0reactions
maxime1992commented, Aug 16, 2022

Up

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found