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

Misc: clean dependencies in apps and addons #13442

Closed
wants to merge 2 commits into from
Closed

Conversation

gaetanmaisse
Copy link
Member

@gaetanmaisse gaetanmaisse commented Dec 13, 2020

Issue: #13194
Plus, follow up on my comment from #13329

What I did

One More Time

How to test

  • CI should be 🟢 + E2E extended test suite
  • There should be no unmeet peer dependency warnings in e2e jobs (threw for storybook packages)

Have both these packages as peerDep is causing a lot of `unmet peer dependency` warnings.
However, there is no need to worry about them because there is a webpack alias in `@storybook/core` so all import of react in addons are aliased to the one from `@storybook/core`.

For details, see #13194

I didn't use `*` as version range but the one used in `app/*` to have only 1 version in the monorepo `node_modules`.
@gaetanmaisse gaetanmaisse added maintenance User-facing maintenance tasks run e2e extended test suite Run the e2e extended test suite in CircleCI workflows labels Dec 13, 2020
@@ -52,6 +52,8 @@
"core-js": "^3.0.1",
"global": "^4.3.2",
"lodash": "^4.17.15",
"react": "16.13.1",
Copy link
Member

Choose a reason for hiding this comment

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

@gaetanmaisse This doesn't seem right to me. If I'm a user writing a third party addon, what version of React should I target? Isn't a peer dependency appropriate for addons where we want it to use whatever version Storybook is using for the manager code?

@gaetanmaisse
Copy link
Member Author

To rework

@stof stof deleted the tech/clean-deps branch May 25, 2022 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks run e2e extended test suite Run the e2e extended test suite in CircleCI workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants