dependency-cruiser icon indicating copy to clipboard operation
dependency-cruiser copied to clipboard

Module encapsulation with single in/out point with nesting

Open ssukienn opened this issue 2 years ago • 2 comments

Hi. Amazing tool! I tried looking for an example but could not find it.

Could you help me visualize how would look config for tree like:

  • ... (whatever)
  • src
    • ... (whatever)
    • module_A
      • api_A.ts
      • submodule_AA
        • index.ts
        • ... (whatever)
      • submodule_BB
        • index.ts
        • ... (whatever)
      • ... (whatever)
    • module_B
      • (analogical)

Going bottom-up:

  • submodule internals cannot be exported outside of submodule
  • submodule index.ts can be exported outside of submodule
  • module internals cannot be exported outside of module
  • module api.ts can be exported outside of module
  • both module and submodule can import whatever from the module OR src level

Also few extra questions. Can we somehow limit exports grom certain files to a specific class/function/name only? Are there any benchmarks?

Thanks!

ssukienn avatar Jun 12 '22 21:06 ssukienn

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Jun 20 '22 03:06 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Jun 28 '22 03:06 github-actions[bot]