0.4.0 • Published 1 year ago

monorepo-root-deps v0.4.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

monorepo-root-deps

If you have a large monorepo and your root package.json has a lot of dependencies that are only used in some packages (or apps or whatever), you can run this script to move them over. I've been using this for a monorepo with close to 500 packages and it's working somewhat well.

move-root-deps

npx -p monorepo-root-deps move-root-deps --directory .

Options

NameShortDescription
--directory (req)-dpath to your monorepo. Can be a relative path
--limit-lLimit the number of deps to move
--dry-runLog and exit
--pristine-pSpecify dirs you don't want to touch
--skip-sSkip some deps, can use multiple times
--skip-prefixSame idea as --skip
--onlyMove only the dep specified, can use multiple times
--only-prefixSame idea as --only
--include-devIncludes devDependencies (default true)

self-imports

npx -p monorepo-root-deps fix-self-imports --directory .

Options

NameShortDescription
--directory (req)-dpath to your monorepo. Can be a relative path
--dry-runLog and exit
--limit-lLimit the number of deps to move
--onlyMove only the dep specified. Can use multiple times

get-deps

npx -p monorepo-root-deps get-deps --directory . --package @internal/foo

Options

NameShortDescription
--directory (req)-dpath to your monorepo. Can be a relative path
--package-pRequired. specify a single package
--recursive-rCrawl up the dependent tree
0.4.0

1 year ago

0.1.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.3.1

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago