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

avro-ts-cli: File structure not maintained after generation #129

Open
Scrambles56 opened this issue Oct 11, 2022 · 1 comment
Open

avro-ts-cli: File structure not maintained after generation #129

Scrambles56 opened this issue Oct 11, 2022 · 1 comment

Comments

@Scrambles56
Copy link

Scrambles56 commented Oct 11, 2022

I'm using a wildcard pattern to generate typescript from my avro files, and have some folder structuring to organize these files. I would like to be able to output to a particular directory but then maintain that structure underneath the output directory. From what I can tell, this isn't possible.

Example:

/contracts/events/example1.avsc
/contracts/events/example2.avsc
/contracts/commands/example3.avsc
/contracts/commands/example4.avsc
avsc-ts /contracts/**/*.avsc --o /dist

Output:

/dist/example1.avsc.ts
/dist/example2.avsc.ts
/dist/example3.avsc.ts
/dist/example4.avsc.ts

It would be nice to have some way of maintaining the source structure and ending up with something like this:

/dist/events/example1.avsc.ts
/dist/events/example2.avsc.ts
/dist/commands/example3.avsc.ts
/dist/commands/example4.avsc.ts
@Nopik
Copy link

Nopik commented Nov 30, 2023

Moreover, if your files happen to refer to each other, the generated file do import from subfolders, whereas files are placed in single folder, so that generates invalid configuration.

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

No branches or pull requests

2 participants