Skip to content

Commit

Permalink
Move babel-runtime to peerDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudahtt committed Jul 14, 2023
1 parent bb44252 commit 2320069
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
12 changes: 8 additions & 4 deletions constraints.pro
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,14 @@ gen_enforced_field(WorkspaceCwd, 'publishConfig', null) :-

% nonce-tracker has an unlisted dependency on babel-runtime (via `ethjs-query`), so that package
% needs to be present if nonce-tracker is present.
gen_enforced_dependency(WorkspaceCwd, 'babel-runtime', '^6.26.0', DependencyType) :-
workspace_has_dependency(WorkspaceCwd, 'nonce-tracker', _, DependencyType).
gen_enforced_dependency(WorkspaceCwd, 'babel-runtime', '^6.26.0', 'peerDependencies') :-
workspace_has_dependency(WorkspaceCwd, 'nonce-tracker', _, 'dependencies').
gen_enforced_dependency(WorkspaceCwd, 'babel-runtime', '^6.26.0', 'devDependencies') :-
workspace_has_dependency(WorkspaceCwd, 'nonce-tracker', _, 'dependencies').

% eth-method-registry has an unlisted dependency on babel-runtime (via `ethjs->ethjs-query`), so
% that package needs to be present if eth-method-registry is present.
gen_enforced_dependency(WorkspaceCwd, 'babel-runtime', '^6.26.0', DependencyType) :-
workspace_has_dependency(WorkspaceCwd, 'eth-method-registry', _, DependencyType).
gen_enforced_dependency(WorkspaceCwd, 'babel-runtime', '^6.26.0', 'peerDependencies') :-
workspace_has_dependency(WorkspaceCwd, 'eth-method-registry', _, 'dependencies').
gen_enforced_dependency(WorkspaceCwd, 'babel-runtime', '^6.26.0', 'devDependencies') :-
workspace_has_dependency(WorkspaceCwd, 'eth-method-registry', _, 'dependencies').
5 changes: 3 additions & 2 deletions packages/transaction-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"@metamask/network-controller": "workspace:^",
"@metamask/utils": "^5.0.2",
"async-mutex": "^0.2.6",
"babel-runtime": "^6.26.0",
"eth-method-registry": "1.1.0",
"eth-query": "^2.1.2",
"eth-rpc-errors": "^4.0.2",
Expand All @@ -49,6 +48,7 @@
"@metamask/auto-changelog": "^3.1.0",
"@types/jest": "^27.4.1",
"@types/node": "^16.18.24",
"babel-runtime": "^6.26.0",
"deepmerge": "^4.2.2",
"ethjs-provider-http": "^0.1.6",
"jest": "^27.5.1",
Expand All @@ -60,7 +60,8 @@
},
"peerDependencies": {
"@metamask/approval-controller": "workspace:^",
"@metamask/network-controller": "workspace:^"
"@metamask/network-controller": "workspace:^",
"babel-runtime": "^6.26.0"
},
"engines": {
"node": ">=16.0.0"
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2047,6 +2047,7 @@ __metadata:
peerDependencies:
"@metamask/approval-controller": "workspace:^"
"@metamask/network-controller": "workspace:^"
babel-runtime: ^6.26.0
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 2320069

Please sign in to comment.