How to handle dependencies in JS/TS monorepos (From Zero to Turbo - Part 2)

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 33

  • @anthonyshewww
    @anthonyshewww  3 дня назад +1

    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!

  • @StartCoadingWithMe
    @StartCoadingWithMe 4 дня назад +5

    Sir please continue this series

  • @rand0mtv660
    @rand0mtv660 2 дня назад +3

    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.

    • @anthonyshewww
      @anthonyshewww  2 дня назад +1

      Totally works! Exactly what I meant by “whatever you want.” 😁

  • @lucaspatrick917
    @lucaspatrick917 3 дня назад +2

    dude, continue this series, pls

  • @thanhlamnguyen1044
    @thanhlamnguyen1044 5 дней назад +2

    I subscribed since the part 1, can't wait for the next part

  • @MattChinander
    @MattChinander 5 дней назад +2

    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.

    • @anthonyshewww
      @anthonyshewww  5 дней назад +2

      Yes, a great feature. I wanted to shown syncpack as the agnostic version, and I’d 100% do Catalogs in a pnpm-specific video.

  • @chinz3614
    @chinz3614 5 дней назад +2

    Looking forward to the next part

  • @dreamsachiever212
    @dreamsachiever212 4 дня назад +2

    keep these coming

  • @mattlaw4395
    @mattlaw4395 4 дня назад +1

    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)

  • @gabrielbianchi2246
    @gabrielbianchi2246 4 дня назад

    Thanks for the explanation of peerDependencies

  • @rajverma5051
    @rajverma5051 4 дня назад

    Subbed! Really helpful

  • @ryuichimiyazaki4032
    @ryuichimiyazaki4032 4 дня назад

    Thank you!!!

  • @Benjamin-Chavez
    @Benjamin-Chavez 4 дня назад +1

    🙌

  • @ayushrameja
    @ayushrameja 4 дня назад

    Waited for 3 months

    • @anthonyshewww
      @anthonyshewww  3 дня назад

      Sorry, I was on Parental Leave! The rest will happen much quicker.

  • @imho7992
    @imho7992 3 дня назад

    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.

    • @anthonyshewww
      @anthonyshewww  3 дня назад

      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.

    • @imho7992
      @imho7992 3 дня назад +1

      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!

  • @dreamsachiever212
    @dreamsachiever212 4 дня назад

    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.

  • @isoonfire
    @isoonfire 5 дней назад

    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 :)

    • @anthonyshewww
      @anthonyshewww  4 дня назад

      You may be interested in github.com/vercel/turborepo/discussions/9435.

  • @annazmussakib4796
    @annazmussakib4796 5 дней назад

    Upload video regularly

  • @WebGhost-wl5cj
    @WebGhost-wl5cj 5 дней назад +1

    Waiting for next video please do upload once in week. Last videos was uploaded 3 to 4 momths ago and thanks

    • @RaVq91
      @RaVq91 5 дней назад

      100% agree

    • @anthonyshewww
      @anthonyshewww  5 дней назад

      I was on Parental Leave. Definitely looking to post more often!
      Thanks, both!