monorepo-package-tool
v2.0.3
Published
A wee tool for syncing package.json files in a monorepo with multiple publishable packages, but a single main package.json
Downloads
1,146
Maintainers
Readme
A wee tool for syncing package.json files in a monorepo with multiple publishable packages, but a single main package.json
🏠 Homepage
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