Skip to content

Commit

Permalink
e2e: update missing package extensions for Yarn 2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanmaisse committed Nov 16, 2020
1 parent 09ddc14 commit e440498
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/run-e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ const configureYarn2 = async ({ cwd }: Options) => {
// Disable fallback mode to make sure everything is required correctly
`yarn config set pnpFallbackMode none`,
// Add package extensions
// https://github.com/casesandberg/reactcss/pull/153
`yarn config set "packageExtensions.reactcss@*.peerDependencies.react" "*"`,
// https://github.com/casesandberg/react-color/pull/746
`yarn config set "packageExtensions.react-color@*.peerDependencies.react" "*"`,
// https://github.com/facebook/create-react-app/pull/9872
`yarn config set "packageExtensions.react-scripts@*.peerDependencies.react" "*"`,
`yarn config set "packageExtensions.react-scripts@*.dependencies.@pmmmwh/react-refresh-webpack-plugin" "*"`,
].join(' && ');
logger.info(`🎛 Configuring Yarn 2`);
logger.debug(command);
Expand Down

0 comments on commit e440498

Please sign in to comment.