I forgot to mention why I didn't include Bun! I've heard complaints from community members that dependency resolution for Workspaces with Bun is a somewhat buggy, so I didn't include it quite yet. I've also experienced this myself. Maybe in the future, we'll talk more about Bun!
Would love a video on syncpack where I can set the react dep and devDep along with the react dom and react types so that throughout the monorepo I can enforce versioning likely through GitHub actions on the PR.
Literal lol @ 11:56. Thanks for these monorepo videos, they're very helpful and in sync with the Turborepo docs I was just going through (I wonder why 🤔). Hoping to continue seeing more. Also, you're a natural on camera and the editing is great 👍
A new feature of pnpm is Catalogs, and it allows defining the version of dependencies used by multiple monorepo packages, allowing for them all to use the same version easily.
Hope you will continue this serie, it’s far the best I have ever seen ! I have a little question , I’m not sure about it, if my whole app is using TypeScript, I can add global devDependency and remove it from all apps right ?
good use case of an optional dependency would be for analytics or logging. You can use it as a form of dependency injection that the controlling application can decide if it is present or not
9:22 even if it doesn't do anything in the end in some cases, I still like to separate regular and dev dependencies just so that it's clearer what's supposed to be used for app code and what's more related to development tooling.
Yarn modern workspaces + turborepo is my favourite combination. Especially its package hoisting common deps. You know you’ve messed up when you see node mods within a package itself (unless intentional)
What if i have two nest js application in a monorepo how to manage the dependency of the packages like @nest/common or any common packages as these packages are required by the multiple nestjs application for now i am installing it in root package.json what would be the better approach ?
Turborepo isn’t responsible for dependency resolution so won’t play a role here. The only thing I can think of is possible an environment variable not accounted for in hashing. Have you tried using Loose Environment Mode?: turbo.build/repo/docs/crafting-your-repository/using-environment-variables#loose-mode If it works there, you’ll want to sort out the missing environment variable(s) and add them to your `env` key.
What about Bun? I’m using Bun in turbo repo right now but noticed that whenever I install a new package it seems to break builds complaining that it can’t find vite config, and I need to remove node modules and reinstall.
I forgot to mention why I didn't include Bun! I've heard many complaints similar to this one that dependency resolution for Workspaces with Bun is a somewhat buggy, so I didn't include it quite yet. I imagine it will get better in the future! Going to make a pinned comment for this.
i see thanks! Glad to know at least it’s not some obscure issue in my repo. Looking forward to the rest of the video series, these are probably the best videos so far on actually understanding Turborepo and best practices!
hey, what if I have a single dependency (specifically @types/* packages, etc.) that I want to use on multiple apps/packages? is it okay to install it on every one?
How about make a video to manage imports? I mean if I'm gonna import an app into another one the linter show an error and rather rules like that. Btw good video :)
I forgot to mention why I didn't include Bun! I've heard complaints from community members that dependency resolution for Workspaces with Bun is a somewhat buggy, so I didn't include it quite yet. I've also experienced this myself.
Maybe in the future, we'll talk more about Bun!
Sir please continue this series
I subscribed since the part 1, can't wait for the next part
Would love a video on syncpack where I can set the react dep and devDep along with the react dom and react types so that throughout the monorepo I can enforce versioning likely through GitHub actions on the PR.
dude, continue this series, pls
🫡
Literal lol @ 11:56. Thanks for these monorepo videos, they're very helpful and in sync with the Turborepo docs I was just going through (I wonder why 🤔). Hoping to continue seeing more. Also, you're a natural on camera and the editing is great 👍
keep these coming
Looking forward to the next part
Super helpful series - really appreciate this work - it's helping me achieve my dreams :))
A new feature of pnpm is Catalogs, and it allows defining the version of dependencies used by multiple monorepo packages, allowing for them all to use the same version easily.
Yes, a great feature. I wanted to shown syncpack as the agnostic version, and I’d 100% do Catalogs in a pnpm-specific video.
Can't wait for the next part.
Hope you will continue this serie, it’s far the best I have ever seen !
I have a little question , I’m not sure about it, if my whole app is using TypeScript, I can add global devDependency and remove it from all apps right ?
good use case of an optional dependency would be for analytics or logging. You can use it as a form of dependency injection that the controlling application can decide if it is present or not
9:22 even if it doesn't do anything in the end in some cases, I still like to separate regular and dev dependencies just so that it's clearer what's supposed to be used for app code and what's more related to development tooling.
Totally works! Exactly what I meant by “whatever you want.” 😁
Thanks for the explanation of peerDependencies
🫡
please continue this series 🙏🙏🙏
Only if you keep watching. 🤝
Yarn modern workspaces + turborepo is my favourite combination. Especially its package hoisting common deps. You know you’ve messed up when you see node mods within a package itself (unless intentional)
What if i have two nest js application in a monorepo how to manage the dependency of the packages like @nest/common or any common packages as these packages are required by the multiple nestjs application for now i am installing it in root package.json what would be the better approach ?
Subbed! Really helpful
In our Expo app, we had to patch a dependency, but now that we’ve set up TurboRepo with the Expo app, the patch is no longer working.
Turborepo isn’t responsible for dependency resolution so won’t play a role here.
The only thing I can think of is possible an environment variable not accounted for in hashing. Have you tried using Loose Environment Mode?: turbo.build/repo/docs/crafting-your-repository/using-environment-variables#loose-mode
If it works there, you’ll want to sort out the missing environment variable(s) and add them to your `env` key.
What about Bun? I’m using Bun in turbo repo right now but noticed that whenever I install a new package it seems to break builds complaining that it can’t find vite config, and I need to remove node modules and reinstall.
I forgot to mention why I didn't include Bun! I've heard many complaints similar to this one that dependency resolution for Workspaces with Bun is a somewhat buggy, so I didn't include it quite yet. I imagine it will get better in the future! Going to make a pinned comment for this.
i see thanks! Glad to know at least it’s not some obscure issue in my repo. Looking forward to the rest of the video series, these are probably the best videos so far on actually understanding Turborepo and best practices!
Thank you!!!
hey, what if I have a single dependency (specifically @types/* packages, etc.) that I want to use on multiple apps/packages? is it okay to install it on every one?
Yes, that’s recommended!
I am learning about turborepo, i got far on a project using npm, is there a way to go back to using pnpm? Been using npm only since.
Try out `npx @turbo/workspaces convert`.
@anthonyshewww thanks a ton.
🙌
wish you included bun and deno here
How about make a video to manage imports? I mean if I'm gonna import an app into another one the linter show an error and rather rules like that. Btw good video :)
You may be interested in github.com/vercel/turborepo/discussions/9435.
monorepo + nextg.js + prisma ?????
Waited for 3 months
Sorry, I was on Parental Leave! The rest will happen much quicker.
Upload video regularly
no u
Waiting for next video please do upload once in week. Last videos was uploaded 3 to 4 momths ago and thanks
100% agree
I was on Parental Leave. Definitely looking to post more often!
Thanks, both!