~/talk

Yarn Berry: a next generation package manager

Talkat NDC Oslo 2021 · 2021-11-29..12-03· [javascript, developer-experience]
links:none on file
slides:none on file

Yarn Berry (Yarn 2/3) rearchitects Yarn with a plugin system, better workspace support, yarn dlx and constraints (written in Prolog) and an encouraged install strategy called plug-and-play (PnP) that eliminates node_modules by serving files from a zipped cache. Example repo sizes drop (demo: node_modules 482 MB vs .yarn/cache 94 MB) and a project can support zero installs by committing the cache. Some tooling (React Native, Flow) still needs the node_modules linker; migration uses yarn set version berry.

AI-written summary · about

  1. 0:00Start
  2. 0:08Yarn 2 A next generation package manager
  3. 3:06Don't panic! Yarn Berry is 100% Opt-In
  4. 3:55Yarn Berry is enabled per-project
  5. 5:31What's new?
  6. 6:30yarn workspaces foreach
  7. 7:05Constraints
  8. 8:04What about performance?
  9. 10:09What is Plug and Play?
  10. 10:22Some Quick Node History
  11. 12:07How do we solve this problem?
  12. 13:26How does it work?
  13. 17:44Upgrading to Yarn 2 and PnP
  14. 18:26You can enable Yarn 2 per project
  15. 40:16Is Plug n Play right for you? Let's discuss!
  16. 42:30What makes Yarn different?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.