Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split into core and CLI packages #18

Closed
wants to merge 2 commits into from

Conversation

benmccann
Copy link

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, and stream-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-layout

This 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.

@75lb
Copy link
Owner

75lb commented Jun 25, 2024

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.

@benmccann
Copy link
Author

Oh, interesting. I wasn't aware of that. Thanks for taking a look at this!

@75lb
Copy link
Owner

75lb commented Jun 29, 2024

Released in v4.0.0, let me know if there's anything else..

@75lb 75lb closed this Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants