Use a range version of pagedjs
I think that pagedjs-cli
should not use a strict version of Paged.js.
The main benefit is that we won't have to release a new version of pagedjs-cli
every time a new version of pagedjs
is released.
I believe that Paged.js is always compatible with the CLI (meaning that we don't have to update the CLI code to make it work with a new version of Paged.js?).
So instead of a strict version, we might use ~0.1.42 < 0.2.0
.
Another idea would be to declare Paged.js as a peerDependencies
so we can explicitly use a specific version:
npm i pagedjs@0.1.38 pagedjs-cli
The downside of this solution is that we now need to install both.