Assign an overlapping file to one architecture layer

When two layers match the same tracked file, the configuration snapshot identifies the file and both layers.

Narrow each layer’s path list#

Trace the named file against both path lists. For example, a src/** layer overlaps a separate src/storage/** layer on every tracked file under storage. Narrow both to the directories they own.

version: 2
architecture:
  layers:
    - name: domain
      paths: ["src/domain/**"]
    - name: storage
      paths: ["src/storage/**"]

Check the committed tree as well as the YAML. With the example above, src/domain/invoice.ts and src/storage/invoice.ts each have one owner. Files under src/ui/ belong to neither layer.

Search help

Tab to a result. Enter to open. Escape to close.