chore: use yarn workspace: protocol to resolve local packages

This commit is contained in:
Mo
2022-06-12 22:06:32 -05:00
parent 4703549a67
commit 30131089f6
8 changed files with 26 additions and 21 deletions

5
constraints.pro Normal file
View File

@@ -0,0 +1,5 @@
% This rule enforces that all workspaces must depend on other workspaces using `workspace:*`
gen_enforced_dependency(WorkspaceCwd, DependencyIdent, 'workspace:*', DependencyType) :-
workspace_has_dependency(WorkspaceCwd, DependencyIdent, _, DependencyType),
DependencyType \= 'peerDependencies',
workspace_ident(DependencyCwd, DependencyIdent).