2.0.3 ā€¢ Published 2 years ago

monorepo-package-tool v2.0.3

Weekly downloads
16
License
MIT
Repository
github
Last release
2 years ago

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

2.0.3

2 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago