vscode-typescript-exportallmodules icon indicating copy to clipboard operation
vscode-typescript-exportallmodules copied to clipboard

Request: Ability to exclude directory but include all subdirectories

Open claygiffin opened this issue 1 year ago • 1 comments

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.

claygiffin avatar Apr 15 '24 18:04 claygiffin

Thanks @claygiffin for suggesting this enhancement.

estruyf avatar Jul 03 '24 08:07 estruyf