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

skipEmptyDir doesn't work? #167

Open
Samuel-Morgan-Tyghe opened this issue Oct 30, 2024 · 3 comments
Open

skipEmptyDir doesn't work? #167

Samuel-Morgan-Tyghe opened this issue Oct 30, 2024 · 3 comments

Comments

@Samuel-Morgan-Tyghe
Copy link

If i have a parentfolder of childfolders then it should create an index.ts file on that level?

If this isn't the intended purpose of skipEmptyDir can we add one to make it backwards compatible with create-ts-index.

It's a migration blocker

@Samuel-Morgan-Tyghe Samuel-Morgan-Tyghe changed the title skipEmptyDir doesn't work skipEmptyDir doesn't work? Oct 30, 2024
@imjuni
Copy link
Owner

imjuni commented Nov 8, 2024

@Samuel-Morgan-Tyghe Hi,

Can you provide reproducable repo?

@Samuel-Morgan-Tyghe
Copy link
Author

@Samuel-Morgan-Tyghe
Copy link
Author

In the sandbox i have added "skipEmptyDir":false, which i assume makes an index.ts file for every directory including empty ones.

previous cti would create an index file in both /src/ and /src/components despite not exporting anything from these folders

usecase should be

i should be able to breakdown by folders IE
@Src/components = src/components/index.ts that imports/exports src/components/firstcomponent/index.ts +src/components/secondcomponent/index.ts

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