-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): dependency rules - from tags
Each from tag must match one of the to tags of its dependency. The old implementation did it the opposite. It iterated over all to tags and at least one from tag had to match. That meant, that from tags could end up having no match at all. Example: Module customer-feature: ['domain:holidays', 'type:feature'] Module shared-ui: ['shared'] Dependency Rules: { 'domain:*': sameTag, 'type:feature': ['shared'] } Since shared-ui had only one tag and type:feature had clearance, the dependency worked. Not it would fail because 'domain:holidays' would also have to have access 'shared'.
- Loading branch information
1 parent
f3d7e30
commit f9399ed
Showing
42 changed files
with
757 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
232 changes: 0 additions & 232 deletions
232
packages/core/src/lib/checks/is-dependency-allowed.spec.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.