Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Case issue: Index.ts fails on Linux, works on Mac OS #271

Open
queejie opened this issue Apr 22, 2020 · 4 comments
Open

Case issue: Index.ts fails on Linux, works on Mac OS #271

queejie opened this issue Apr 22, 2020 · 4 comments
Labels
enhancement new feature or bug with easy workaround

Comments

@queejie
Copy link

queejie commented Apr 22, 2020

I wasn't able to find a flag to generate a lower case index.ts file. When we generate on Mac OS it results in Index.ts (upper case first letter). That fails on production, on Linux. Is it possible to affect the index file name without affecting all the other model file names?

(By 'fails', I mean that all the import statements that reference just entities must be replaced with specific references to entities/EntityName)

Thanks for a great tool!

@stale
Copy link

stale bot commented Aug 1, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 1, 2020
@Kononnable Kononnable removed the stale label Aug 2, 2020
@Kononnable
Copy link
Owner

Sorry for the delay I didn't have much time for OSS lately.
What do you mean by That fails on production? How does that fail?

@queejie
Copy link
Author

queejie commented Aug 2, 2020

When I generate on the Mac dev box, it uses one case, but when I move that code over to Linux it uses another for index.ts/Index.ts. (I can't remember which is which.) Since the Mac is case insensitive it works. Since Linux is not, it fails. By fail I mean that using imports with '/path/entities' does not work, because of the implicit index.ts. I would have to change all imports to '/path/entities/specific-model' to have it work on both platforms.

@Kononnable Kononnable added the enhancement new feature or bug with easy workaround label Aug 2, 2020
@scr4bble
Copy link

Hello, we have the same problem. I am using linux and the tool generates Index.ts with first character being upper case. My colleagues use different OS so now I have to manually adjust the file name to lowercase after each generation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement new feature or bug with easy workaround
Projects
None yet
Development

No branches or pull requests

3 participants