Skip to content

Request: Ability to exclude directory but include all subdirectories #27

Open
@claygiffin

Description

@claygiffin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions