How to create packages in multiple level folders? #11012
-
|
I don't want to have to create all my packages in the top level packages folder. My current non Turborepo monorepo is very large and I have ~300 packages. I'd like to be able to generate packages and have them live in a folder structure that is more than one level deep. (I don't mean packages inside other packages). For example, I'd have the platforms level such as web/cloud/mobile then inside them I'd have pages/widgets/features then I'd have usage folders like ui/lib/api/model inside those. It seems Turborepo only supports having all packages at the top level, but this seems like it would be very hard to organise or the packages would need to be massive, which then ruins the caching opportunities. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
See the callout in this section of the docs: https://turborepo.dev/docs/crafting-your-repository/structuring-a-repository#declaring-directories-for-packages |
Beta Was this translation helpful? Give feedback.
See the callout in this section of the docs: https://turborepo.dev/docs/crafting-your-repository/structuring-a-repository#declaring-directories-for-packages