Open
Description
I need to be able to automatically generate indexes for every subfolder in a directory, but not generate an index for that directory itself. The pattern I am trying to create is the ability to import from @/directory/subdirectory
, rather than just '@/directory'.
The folder structure I am using is something like this:
[src]
[features]
[feature-1]
file1.tsx
file2.tsx
index.ts <-AUTO GENERATED
[/feature-1]
[feature-2]
file1.tsx
file2.tsx
index.ts <-AUTO GENERATED
[/feature-2]
index.ts <-CURRENTLY AUTO GENERATED, NOT WANTED
[/features]
[/src]
Is there some way of handling this that I am missing? Right now, I am trying to listen to ["/src/features/**"]
and use relExclusion on ["/src/features"]
, but that doesn't work.