Closed bliakher closed 1 year ago
Hi
I should create some more helpers for this, I recommend that you run convertFromDirectory
on /schema/admin
and /schema/user
directories, this will allow for the two files with the same name
no activity closing
I'm incorporating this library into my existing project and I ran into the following issue:
Inside my folder with Joi schemas I have 2 subdirectories with files that are named the same:
I generate interfaces with a call to:
When I checked the output
/interfaces
directory,/interfaces/admin/profiles.ts
file exists but/interfaces/user/profiles.ts
is not generated.Debug console output has
profiles.ts - Processing
for both files and the generatedindex.ts
file in/interfaces/user
has export for./profiles
. But the generated file itself is not createdI tested and this issue seems to happen for any pair of files with the same name in different subdirectories.
Issue is solvable by renaming files to have different names.