expo / expo-webpack-integrations

Packages used to integrate Expo in Webpack-based projects.
8 stars 1 forks source link

fix(webpack-config): loosen peer dependency versions #27

Closed byCedric closed 7 months ago

byCedric commented 7 months ago

Why

This allows npm to install @expo/webpack-config@19 on a SDK 50 project, even though it's currently in maintenance mode.

I tested this in a separate blank project, seems to work fine.

⚠️ Apparently, we have some issues with the x.x.x-preview.x versions. npm won't allow 50.0.0-preview.11 when setting version constraint to >=49.0.7, which seems weird to me as 50.0.0-preview.11 is in-fact higher than 49.0.7. ℹ️ This is now resolved by using ^50.0.0-0 to force-allow prereleases as peer dependency, see this thread

How

Test Plan

ℹ️ Test this change with a tarball, not with the file:... option as that doesn't install or validate the peer dependencies properly with npm.

Create a test build for @expo/webpack-config

Create a test project