A wee tool for syncing package.json files in a monorepo with multiple publishable packages, but a single main package.json
🏠 Homepage
- npm >=6.0.0
- node >=10.0.0
npm install monorepo-package-tool
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
--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
👤 Daniel Studds
- Website: https://danielstudds.com
- Github: @studds
- LinkedIn: @studds
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2020 Daniel Studds.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator