We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Levelling up Monorepos with npm Workspaces - Ruy Adorno, DevOps.js Conference 2022
Learn how to level up your monorepo management with npm workspaces, enabling efficient dependency management and scripting for complex projects.
- npm workspaces allow for managing multiple packages in a single repository.
-
npm init can be used to create a new workspace and initialize it with a separate
package.json
file. -
The
package.json
file in the top-level folder can list all the workspaces in the repository. -
The
npm run
command can be used to run scripts at the top level or in a specific workspace. - npm workspaces can be used to manage dependencies and ensure that all dependencies are installed and updated properly.
- npm workspaces can also be used to run multiple scripts in parallel.
-
The
npm exec
command can be used to run a command in a specific workspace. - npm workspaces can be useful for managing complex projects with multiple dependencies.
- npm workspaces can be used to simplify the process of managing dependencies and updating project dependencies.
- npm workspaces can be used to create a single place to manage all project dependencies and scripts.
- npm workspaces can be used to create a single place to manage all project configuration files.
- npm workspaces can be used to create a single place to manage all project dependencies and scripts for a monorepo.
- npm workspaces can be used to create a single place to manage all project configuration files and dependencies for a monorepo.
- npm workspaces can be used to create a single place to manage all project dependencies and scripts and configuration files for a monorepo.
- npm workspaces can be used to create a single place to manage all project dependencies and scripts and configuration files and workflow for a monorepo.