-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
move react types to a dev dependency and peer dependency #25307
Open
aramissennyeydd
wants to merge
19
commits into
backstage:master
Choose a base branch
from
aramissennyeydd:react-types-peer-dependencies
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
move react types to a dev dependency and peer dependency #25307
aramissennyeydd
wants to merge
19
commits into
backstage:master
from
aramissennyeydd:react-types-peer-dependencies
+1,260
−199
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Changed Packages
|
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
afdcf87
to
7fdad4a
Compare
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com>
Wanna bring in @Rugvip here too, although he's out on vacation at the minute for a few weeks. 🙏 |
2 tasks
acierto
approved these changes
Jun 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:catalog
Related to the Catalog Project Area
area:discoverability
Related to the Discoverability Project Area
area:kubernetes
Related to the Kubernetes Project Area - not deploying Backstage with k8s.
area:permission
Related to the Permission Project Area
area:scaffolder
Everything and all things related to the scaffolder project area
area:techdocs
Related to the TechDocs Project Area
auth
homepage
Features for the composable homepage
search
Things related to Search
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey, I just made a Pull Request!
Fixes #25278. There's been prior work in this space, (#8361, #22539, 482bb5c and #17116), but I think we've flip-flopped a bit between the types being a peer dependency and a full dependency.
Ideally, they should be both a dev dependency and a peer dependency, so they can be installed and used locally for development, but adopters can provide a custom version - possibly a different major version. For package managers using
peerDependenciesMeta
, I also listed the types as an optional dependency as they are not required to consume the package. This is generally standard, example from MUI.I also added this as a required CI check. As part of that, I required all peer dependencies that are defined to be installed in dev dependencies. IMO that's how they should be setup unless the peer dependency isn't actually needed.
✔️ Checklist
Signed-off-by
line in the message. (more info)