Skip to content

aleclarson/subrepo-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subrepo-install

The easy way to set up a standalone subrepo outside its monorepo.

Warning

This tool is intended for projects using pnpm only! If you use a different package manager, please open an issue.

pnpm add subrepo-install

How it works

Use subrepo-install in a postinstall script to clone dependencies that would otherwise be provided by a monorepo. If a dependency always needs to be cloned, you can do that too.

This approach is specifically designed to work well with git-subrepo.

If subrepo-install is used in a workspace context, it will realize this automatically and link to the monorepo-provided dependencies instead of cloning them.

Additionally, you can inherit dependencies from these sub-dependencies by setting the inheritDependencies option. This is similar to pnpm's Catalogs feature, but is designed to work with git-subrepo.

About

Postinstall scripts for git subrepos

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published