Skip to content

Commit

Permalink
chore: use melos override new option (flutter-stripe#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesblasco authored Sep 15, 2022
1 parent 478fe92 commit 0751190
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 14 deletions.
14 changes: 0 additions & 14 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,6 @@ dev_dependencies:
flutter_test:
sdk: flutter

dependency_overrides:
flutter_stripe:
path: ../packages/stripe
stripe_platform_interface:
path: ../packages/stripe_platform_interface
stripe_android:
path: ../packages/stripe_android
stripe_ios:
path: ../packages/stripe_ios
stripe_checkout:
path: ../packages/stripe_checkout/
flutter_stripe_web:
path: ../packages/stripe_web

flutter:
uses-material-design: true

Expand Down
14 changes: 14 additions & 0 deletions example/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# melos_managed_dependency_overrides: flutter_stripe,stripe_platform_interface,stripe_android,stripe_ios,stripe_checkout,flutter_stripe_web
dependency_overrides:
flutter_stripe:
path: ../packages/stripe
stripe_platform_interface:
path: ../packages/stripe_platform_interface
stripe_android:
path: ../packages/stripe_android
stripe_ios:
path: ../packages/stripe_ios
stripe_checkout:
path: ../packages/stripe_checkout
flutter_stripe_web:
path: ../packages/stripe_web
3 changes: 3 additions & 0 deletions melos.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: stripe
command:
bootstrap:
usePubspecOverrides: true
packages:
- /**
scripts:
Expand Down
8 changes: 8 additions & 0 deletions packages/stripe/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# melos_managed_dependency_overrides: stripe_android,stripe_ios,stripe_platform_interface
dependency_overrides:
stripe_android:
path: ../stripe_android
stripe_ios:
path: ../stripe_ios
stripe_platform_interface:
path: ../stripe_platform_interface
4 changes: 4 additions & 0 deletions packages/stripe_web/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# melos_managed_dependency_overrides: stripe_platform_interface
dependency_overrides:
stripe_platform_interface:
path: ../stripe_platform_interface

0 comments on commit 0751190

Please sign in to comment.