Split package up into multiple packages to be more modular #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR answers the question in #7. Yes, this package can be split up.
I've utilized Lerna to split this package into the following sub-packages within this repository (which will now be considered a "monorepo"):
I've done my best to update all documentation, however, this could probably do with some additional care in the future.
Unfortunately, and the reason that this is a breaking change (which I was really hoping to avoid), is that I've had to undo what was done in #9. In order to get this working the way I had imagined, I had to expose a pre-configured instance in the convert-svg-to-png package instead of a constructor. Unfortunate, but unavoidable, I believe, for now, at least.
I have the install setup perfectly (I believe), especially for contributors, but having never used lerna before, I am a bit scared of the publish mechanism, which appears to try to do a lot. So I might need to take care with that, especially for the first few times.