Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: setup Yarn constraints #13363

Merged
merged 11 commits into from
May 31, 2021
Prev Previous commit
Next Next commit
chore: enforce workspace:* for dev dependencies
  • Loading branch information
merceyz committed May 27, 2021
commit b881c9c6e53f229babd13ba1b0e8c3ab006b5c8f
5 changes: 5 additions & 0 deletions constraints.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
% Enforces that all workspaces depend on other workspaces using `workspace:*` in devDependencies
gen_enforced_dependency(WorkspaceCwd, DependencyIdent, 'workspace:*', 'devDependencies') :-
workspace_has_dependency(WorkspaceCwd, DependencyIdent, DependencyRange, 'devDependencies'),
% Only consider dependency ranges that start with 'workspace:'
atom_concat('workspace:', _, DependencyRange).
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"@babel/types": "workspace:^7.13.12"
},
"devDependencies": {
"@babel/traverse": "workspace:^7.12.17"
"@babel/traverse": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/babel-helper-simple-access/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"@babel/types": "workspace:^7.13.12"
},
"devDependencies": {
"@babel/traverse": "workspace:^7.12.17"
"@babel/traverse": "workspace:*"
}
}
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@babel/helper-member-expression-to-functions@workspace:packages/babel-helper-member-expression-to-functions"
dependencies:
"@babel/traverse": "workspace:^7.12.17"
"@babel/traverse": "workspace:*"
"@babel/types": "workspace:^7.13.12"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -766,7 +766,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@babel/helper-simple-access@workspace:packages/babel-helper-simple-access"
dependencies:
"@babel/traverse": "workspace:^7.12.17"
"@babel/traverse": "workspace:*"
"@babel/types": "workspace:^7.13.12"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -3557,7 +3557,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/traverse@workspace:*, @babel/traverse@workspace:^7.12.17, @babel/traverse@workspace:^7.13.0, @babel/traverse@workspace:^7.13.15, @babel/traverse@workspace:^7.14.0, @babel/traverse@workspace:^7.14.2, @babel/traverse@workspace:packages/babel-traverse":
"@babel/traverse@workspace:*, @babel/traverse@workspace:^7.13.0, @babel/traverse@workspace:^7.13.15, @babel/traverse@workspace:^7.14.0, @babel/traverse@workspace:^7.14.2, @babel/traverse@workspace:packages/babel-traverse":
version: 0.0.0-use.local
resolution: "@babel/traverse@workspace:packages/babel-traverse"
dependencies:
Expand Down