Skip to content

Move your monolith dependencies into your monorepo packages

Notifications You must be signed in to change notification settings

xolvio/lerna-dependencies-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lerna Dependencies Generator

Move your monolith dependencies into lerna packages.

Run from the directory that contains your top package.json and your lerna.json.

Warning! Having a clean repo state highly recommended, so it's easy to compare (and revert) changes.

$ npx lerna-dependencies-generator

This tool will add missing dependencies to your packages package.json. If it finds matches in the top-level package.json, it will reuse that version, to make sure things run the same as if it was using the top-level dependency.

If there is no match, that means we have been using a given dependency explicitly, and we don't know what version, so we will set it to "*" to have any version match. Those entries should be most probably manually edited.

About

Move your monolith dependencies into your monorepo packages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published