Skip to content

A wee tool for syncing package.json files in a monorepo with multiple publishable packages, but a single main package.json

License

Notifications You must be signed in to change notification settings

studds/monorepo-package-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to monorepo-package-tool 👋

Version Documentation Maintenance License: MIT

A wee tool for syncing package.json files in a monorepo with multiple publishable packages, but a single main package.json

Prerequisites

  • npm >=6.0.0
  • node >=10.0.0

Install

npm install monorepo-package-tool

Usage

npx monorepo-package-tool [--rootModuleDir libs] [--destDir dist] [--scopeDepsArePeers]

Inject dependencies etc into package.json for multiple packages under ./libs, and copy to the ./dist/{package-path} dir:

npx monorepo-package-tool --rootModuleDir libs

Inject dependencies etc into a single package, and copy to dist/example dir:

npx monorepo-package-tool --rootModuleDir libs/example --destDir dist/example

Options

--rootModuleDir (default: packages): Path to submodule root directory - will search for package.json files under here --destDir (default: dist): Output dir - if missing, will attempt to derive from tsconfig.json --scopeDepsArePeers (default: false): Prior to version 2, dependencies in the same scope were added as peer dependencies, now the default is to add them as dependencies

Examples

Author

👤 Daniel Studds

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 Daniel Studds.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

About

A wee tool for syncing package.json files in a monorepo with multiple publishable packages, but a single main package.json

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published