Skip to content

Commit

Permalink
Revert "add exception in the constraints.pro for non MIT license" (#1909
Browse files Browse the repository at this point in the history
)

Reverts #1888
This PR accidentally removed the below existing constraints. Reverting
the changes.
```
% Non-published packages do not have a license.
gen_enforced_field(WorkspaceCwd, 'license', null) :-
  workspace_field(WorkspaceCwd, 'private', true).
```
  • Loading branch information
kanthesha authored Oct 24, 2023
1 parent 6c5d673 commit 27056ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions constraints.pro
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,14 @@ gen_enforced_field(WorkspaceCwd, 'repository.url', RepoUrl) :-
% The license for all published packages must be MIT unless otherwise specified.
gen_enforced_field(WorkspaceCwd, 'license', 'MIT') :-
\+ workspace_field(WorkspaceCwd, 'private', true),
WorkspaceCwd \= 'packages/json-rpc-engine',
WorkspaceCwd \= 'packages/eth-json-rpc-provider'.
% The following published packages use an ISC license instead of MIT.
gen_enforced_field(WorkspaceCwd, 'license', 'ISC') :-
\+ workspace_field(WorkspaceCwd, 'private', true),
WorkspaceCwd == 'packages/json-rpc-engine',
WorkspaceCwd == 'packages/eth-json-rpc-provider'.
% Non-published packages do not have a license.
gen_enforced_field(WorkspaceCwd, 'license', null) :-
workspace_field(WorkspaceCwd, 'private', true).

% The entrypoint for all published packages must be the same.
gen_enforced_field(WorkspaceCwd, 'main', './dist/index.js') :-
Expand Down

0 comments on commit 27056ac

Please sign in to comment.