Skip to content

Commit

Permalink
Workaround yarn constraints breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Oct 18, 2021
1 parent 3305028 commit eede874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions constraints.pro
Expand Up @@ -64,9 +64,9 @@ gen_enforced_field(WorkspaceCwd, FieldName, ExpectedValue) :-
% Get current value
workspace_field(WorkspaceCwd, FieldName, CurrentValue),
% Must not start with ./ already
\+ atom_concat('./', _, CurrentValue),
\+ atom_concat('"./', _, CurrentValue),
% Store './' + CurrentValue in ExpectedValue
atom_concat('./', CurrentValue, ExpectedValue).
atom_concat('"./', CurrentValue, ExpectedValue).

% Enforces that a dependency doesn't appear in both `dependencies` and `devDependencies`
gen_enforced_dependency(WorkspaceCwd, DependencyIdent, null, 'devDependencies') :-
Expand Down

0 comments on commit eede874

Please sign in to comment.