Order builds by package #767
-
Hello, I am looking for a way to first run the build of the modules of
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
I would suggest to just generate all files within packages that depend on build_runner and go through with generate: >
melos exec -c 1 --order-dependents --fail-fast --depends-on="build_runner" -- \
dart run build_runner build --delete-conflicting-outputs If you're having circular dependencies that won't work though. If you have circular dependencies I would recommend that you create three categories, and then use Currently you are trying to run |
Beta Was this translation helpful? Give feedback.
I would suggest to just generate all files within packages that depend on build_runner and go through with
--order-dependents
, so that it does the leaf dependencies first, like this for example:If you're having circular dependencies that won't work though.
If you have circular dependencies I would recommend that you create three categories, and then use
exec
on each category in order:https://melos.invertase.dev/configuration/overview#categories
https://melos.invertase.dev/filters#--category
Currently you are trying to run
build_…