run command in just one package + its descendants
Closed this issue · 2 comments
natew commented
Basically I have monorepo:
apps/*
packages/*
I want to build one app and only the packages it relies on, is that possible now? Would be nice for docker builds to reduce total build time.
folke commented
It is! I actually added this functionality a couple of weeks ago.
You can use --filter
to select the packag(es) you need and then prefix the filter with +
to include it's dependencies.
See https://github.com/folke/ultra-runner/#palm_tree-recursive-execution for more information.
Hope this helps.
folke commented
It would probably make sense to make this the default behavior though 🤔