monorepo-package-tool v2.0.3
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
- Website: https://danielstudds.com
- Github: @studds
- LinkedIn: @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