chore: add constraint for duplicate dependency declarations (#13744)
This commit is contained in:
parent
37e1b91b74
commit
0ca601a86f
@ -67,3 +67,8 @@ gen_enforced_field(WorkspaceCwd, FieldName, ExpectedValue) :-
|
||||
\+ atom_concat('./', _, CurrentValue),
|
||||
% Store './' + CurrentValue in ExpectedValue
|
||||
atom_concat('./', CurrentValue, ExpectedValue).
|
||||
|
||||
% Enforces that a dependency doesn't appear in both `dependencies` and `devDependencies`
|
||||
gen_enforced_dependency(WorkspaceCwd, DependencyIdent, null, 'devDependencies') :-
|
||||
workspace_has_dependency(WorkspaceCwd, DependencyIdent, _, 'devDependencies'),
|
||||
workspace_has_dependency(WorkspaceCwd, DependencyIdent, _, 'dependencies').
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user