Closed benmccann closed 4 months ago
There used to be a separate table-layout-cli module but, for the sake of simplicity, the most recent table-layout release merged the two (see the Release Notes). I will take a look at the merits of splitting them up again tomorrow, once I get time.. Thanks for the report.
Oh, interesting. I wasn't aware of that. Thanks for taking a look at this!
Hi, I know this is a non-trivial unsolicited PR, but I hope you will find value in it and I would be happy to work to update it to match any preferences you have for.
This creates two packages within this repository: a core package and a CLI package. I would really like to use the core package from a number of projects, but they already have their own CLI libraries and I don't want to pull in additional CLI dependencies that will be unnecessary. This moves the dependencies
command-line-args
,command-line-usage
, andstream-read-all
out of core as well as their transitive dependencies, which is a majority of the project's dependencies: https://npmgraph.js.org/?q=table-layoutThis PR is built using
pnpm
so that both projects can be built, tested, etc. with a single command.I would say the main thing to decide is what should the package names be? Some possibilities:
table-layout
&table-layout-core
table-layout-cli
&table-layout
table-layout
&@table-layout/core
@table-layout/cli
&@table-layout/core
I've also left the version numbers alone, but they would need to be incremented before or as part of any new release.