~/talk

Levelling up Monorepos with npm Workspaces

Talkat DevOps.js Conf 2022 · 2022-03-24..03-25· [nodejs]
slides:none on file

Demos show npm v7 workspaces managing a monorepo: a single top-level node_modules and lockfile, npm init creating and registering new workspaces, and npm workspace add installing into the top-level tree. Commands shown include npm workspaces hoists dependencies to top-level node_modules, npm pkg set/get works across -ws to mutate package.json per workspace, and no-hoist workaround via npm aliases to force local installs. Scripts run per-package and in parallel with npm run all and run-p, and the live demo starts dev servers and succeeds.

AI-written summary · about

  1. 0:00Introduction to monorepos
  2. 1:33Understanding workspaces
  3. 4:13Setting up workspaces
  4. 7:40Managing dependencies
  5. 13:26Running scripts
  6. 17:51Advanced commands
~/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.