Search code examples
rush

Have Rush add dev dependencies to new project


When adding a new project to a Rush monorepo, is there a way for Rush to automatically insert the dev dependencies into the package.json? For example I want to use the same test frameworks between projects so it would be good to have Rush sync the dev dependencies.


Solution

  • No, there is no way to do this. rush has no idea which package requires which dependencies and, as such, you'll need to add them manually to each.

    However, once you've configured your package.json's accordingly, rush will help you maintain dependency versioning across your monorepo. The precise behaviour can be configured by: