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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Add lerna as peer dependency #2441

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
"url-join": "^4.0.0"
},
"peerDependencies": {
"typescript": ">=2.7"
"typescript": ">=2.7",
"lerna": "^7.1.4"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm it probably doesn't make sense for core to depend on lerna...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only the all contributors plugin depends on that.

I think we should either:

  1. move that function into a dep
  2. just copy the function into the 2 places we use it (npm and all-contributors)

I think 2 is better. then we can say lerna is an optionalPeerDep of the all-contributors plugin

},
"peerDependenciesMeta": {
"@types/node": {
Expand All @@ -98,6 +99,7 @@
"@types/signale": "^1.2.1",
"@types/tinycolor2": "^1.4.1",
"@types/url-join": "^4.0.0",
"graphql": "^15.0.0"
"graphql": "^15.0.0",
"lerna": "^7.1.4"
}
}
6 changes: 5 additions & 1 deletion plugins/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"@types/env-ci": "^3.1.0",
"@types/semver": "^7.1.0",
"@types/url-join": "^4.0.0",
"@types/user-home": "^2.0.0"
"@types/user-home": "^2.0.0",
"lerna": "^7.1.4"
},
"peerDependencies": {
"lerna": "^7.1.4"
}
}