I have three packages in my turborepo monorepo, top
, middle
, and bottom
. top
depends on middle
and middle
depends on bottom
.
If I do this:
cd bottom
make some edits
cd ../middle
make some edits
I want to type something in that directory (middle
) that will build everything that middle
depends on (i.e. bottom
) and middle
itself.
I know I can cd to the root of the project and do this:
turbo run build --filter=middle...
but I want a command (or a script) that knows what directory I am in and basically says "build everything up to and including here"