Split in two packages
Clement134 opened this issue · 1 comments
Clement134 commented
Currently all the code and the dependencies are in the get-changelog package. Whereas a big part is only used with the CLI. I think this could prevent users to use the library part in their projects (because of useless code and dependencies).
A solution could be to have two packages, one with only the library part and the other with all the CLI stuff (using the library part has an external dependency).
All the code could remain in this repository, reorganised as a monorepo.
If you have any suggestion or question regarding this discussion, feel free to participate.
Clement134 commented
Done using lerna.
Two packages are now provided by this repository:
- https://www.npmjs.com/package/get-changelog-cli for the CLI tool
- https://www.npmjs.com/package/get-changelog-lib for library usage