Skip to content

feat: multiple files to single output file #338

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

Closed
wants to merge 1 commit into from

Conversation

tadhgmister
Copy link

Fixes #272

  • adds new option --exportMainOnly (default to false) which causes all definition types to be not exported
  • adds new option usedNames (not available to command line) which allows the same set of used names to persist over multiple calls to compile (this was main part needed to have single output file work correctly)
  • when input is multiple files and output is stdout it now uses a continuous usedNames set so piping to a file works as expected
  • when output is a single file and input is multiple files it writes it to the file similarly to outputting to stdout but it also overrides the banner for subsequent files to just be a separator.

@bcherny
Copy link
Owner

bcherny commented May 4, 2023

Closing out stale PRs. Feel free to rebase and re-open if you like.

@bcherny bcherny closed this May 4, 2023
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.

[Feature] Add single file output for multi file input
2 participants