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

Create index.ts when generating files from a directory #553

Open
galah92 opened this issue Sep 26, 2023 · 1 comment
Open

Create index.ts when generating files from a directory #553

galah92 opened this issue Sep 26, 2023 · 1 comment

Comments

@galah92
Copy link

galah92 commented Sep 26, 2023

I'm using the CLI as follows:

json2ts -i './*.json' --output -o ../contracts

Where in my current directory there are multiple JSON Schema files. In the contracts directory I'm getting multiple d.ts files. I'd like to be able to reference them together, and to autogenerate an index.ts file while will re-export everything inside the directory.
If there's an easier way to achieve that I would be happy to hear about it.

Thank you

@bcherny
Copy link
Owner

bcherny commented Jan 14, 2024

Dup of #258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants