Skip to content

Commit

Permalink
only allow peer dependency errors in react prereleases
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed May 6, 2024
1 parent 74afbb1 commit 638b96a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/utils/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ export const configureYarn2ForVerdaccio = async ({
`yarn config set enableImmutableInstalls false`,
];

if (key.includes('svelte-kit') || key.includes('prerelease')) {
if (
key.includes('svelte-kit') ||
// React prereleases will have INCOMPATIBLE_PEER_DEPENDENCY errors because of transitive dependencies not allowing v19 betas
key.includes('react-vite/prerelease') ||
key.includes('react-webpack/prerelease')
) {
// Don't error with INCOMPATIBLE_PEER_DEPENDENCY for SvelteKit sandboxes, it is expected to happen with @sveltejs/vite-plugin-svelte
command.push(
`yarn config set logFilters --json '[ { "code": "YN0013", "level": "discard" } ]'`
Expand Down

0 comments on commit 638b96a

Please sign in to comment.