-
|
Hey i am using melos locally as well in an azure pipeline to bootstrap and build the packages. We have Flutter and Dart packages. The Project looks like this: Base (Flutter) To build the Project i run:
melos build is a custom script that looks like this: The problem is that packages that are not dependend on the flutter sdk can't be build this way because they got bootstrapped as a dart project. Executing If i want to keep this one command to execute all build requests i need to add the flutter sdk to the dart package like described in #317 This will allow the script to build successfully. Is there a way to avoid this workaround? Could melos decide what executebale should be used based on the package like with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
I would also recommend enabling command:
bootstrap:
usePubspecOverrides: trueIf you do, you will also want to add |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
dart run build_runner build --delete-conflicting-outputsshould work for both Flutter and Dart packages.I would also recommend enabling
usePubspecOverrides, if you haven't:If you do, you will also want to add
pubspec_overrides.yamlto your.gitignorefile.