How do I start my app, and have my libraries build before the app starts? #372
-
|
My monorepo is fairly simple(tm): the app depends on both packages. my turbo config is {
"turbo": {
"pipeline": {
"start": { "dependsOn": "^build" }
}
}
}however, when I run: yarn turbo run start --scope="app"the build commands from the packages are not run. I also tried but it tried to run start on everything (non-relevant packages, apps, etc).. which I don't want. I just want to develop one app atm. how can I do this? Thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
|
I have a similar situation and would like to see an example of this. If I run my app's dev server, is there a way to tell it to build the needed packages before trying to run the dev server if they haven't already been built? Is there a similar step for build and deploy too? I was trying to test on Vercel and now that I've split some packages from the main app it isn't building them and thus errors. |
Beta Was this translation helpful? Give feedback.
-
|
Update: You might need a This seems to make |
Beta Was this translation helpful? Give feedback.
-
|
Make sure your |
Beta Was this translation helpful? Give feedback.
-
|
Have you tried I found |
Beta Was this translation helpful? Give feedback.
#417 was merged many moons ago so will close here!
TL;DR: Use the
--filterflag!