Skip to content

Include modules that have 0 dependencies and dependants in the output graph #56

@myhau

Description

@myhau

💡 Describe the solution you'd like

Let's say that we have 3 modules:

  • moduleA - depends on moduleB
  • moduleB - depends on nothing
  • moduleC - depends on nothing

The graph generated by module-graph will only show moduleA and moduleB. moduleC won't be shown.

It might seem that moduleC is an unnecessary module, but there are situations where this a valid case and there are multiple such independent modules in the project (especially in monorepo environment).

Current behavior

%%{
  init: {
    'theme': 'neutral'
  }
}%%

graph LR
  :moduleA --> :moduleB
Loading

Desired behavior

%%{
  init: {
    'theme': 'neutral'
  }
}%%

graph LR
  :moduleA --> :moduleB
  :moduleC
Loading

🤚 Do you want to develop this feature yourself?

  • Yes
  • No

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions