Skip to main content

Updating a project to use a specific version of the Depot client-side packages

Projects depend on a set of packages in the @stage-tech/depot-* namespace. When a Node.js monorepo depends on depot, and has multiple subpackages, these dependencies may be a bit tedious to update.

To facilitate this, Depot CLI includes a command that scans a directory for package.json files recursively, and for each of these files updates the @stage-tech/depot-* dependencies to the specified version.

example (in the current directory):

depot node-use --depot-version=8.7.0

example 2 (in a specific directory):

depot node-use --depot-version=8.7.0 --start-dir=/path/to/my/repo