-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Build: Fix CRA repro generator and e2e test in PnP mode #17375
Merged
Merged
Changes from 7 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
d3305f8
fix e2e tests and update the CI version of node
ndelangen bacafa2
improve
ndelangen b35acc8
cleanup
ndelangen dd736ce
add missing per deps
ndelangen 78a0b46
Merge branch 'next' into fix/e2e-cra
ndelangen 930eb3a
might as well try this
ndelangen 6c24eba
set version of @mdx-js/react to 1.x.x
ndelangen 16bb465
sigh
ndelangen 1dfd34c
I hope this is the last one
ndelangen f04451b
fix?
ndelangen 45b8257
try and zip the & see if adding 'assert' polyfill helps
ndelangen 0bae768
what do I say at this point?
ndelangen 1e19a05
Merge branch 'next' into fix/e2e-cra
ndelangen 873bf53
well, that's one way to do it I guess, sorry
ndelangen 5eda531
Merge branch 'next' into fix/e2e-cra
ndelangen e233456
Merge branch 'next' into fix/e2e-cra
ndelangen d737c52
change back to use pnp
ndelangen a76c99a
fix a new error
ndelangen b775930
remove peerDependencies that are already specified in peerDependencie…
ndelangen c13a0fa
add regenerator-runtime to where it is needed
ndelangen 3bf5571
add excemption to lint warnings
ndelangen bfc1a40
fix linting
ndelangen 4cfc80c
Add some dependencies in CRA template generator
gaetanmaisse f517d56
Add tmp workaround to fix CRA repro in PnP mode
gaetanmaisse 27c5007
Merge branch 'next' into fix/e2e-cra
gaetanmaisse cf55644
Rely on `peerDependenciesMeta` only for some packages
gaetanmaisse 4c46e48
Force use of NPM during bootstrap of CRA repros
gaetanmaisse eb2f559
Add missing peer dep in addon-essentials
gaetanmaisse 2851adb
Ignore eslint warning
gaetanmaisse e1a3dae
Use fixed versions for Vue packages in repro generator
gaetanmaisse dd4ae47
Remove wrongly committed packageExtensions
gaetanmaisse 4abf608
Update yarn.lock
gaetanmaisse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,7 +87,7 @@ export async function baseGenerator( | |
const addonPackages = [...addons, '@storybook/addon-actions']; | ||
|
||
const yarn2Dependencies = | ||
packageManager.type === 'yarn2' ? ['@storybook/addon-docs', '@mdx-js/react'] : []; | ||
packageManager.type === 'yarn2' ? ['@storybook/addon-docs', '@mdx-js/react@1.x.x'] : []; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @shilman version lock it to v1 |
||
|
||
const files = await fse.readdir(process.cwd()); | ||
const isNewFolder = !files.some( | ||
|
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to add these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because there is
@storybook/core
as dep and it has@storybook/builder-webpack4
as optional peer dep itself, so we need to add it to satisfy transitivity. Maël did a post about it some time ago: https://dev.to/arcanis/implicit-transitive-peer-dependencies-ed0