If most directories of a project contain no more than 2-3 TypeScript files and all of their exports should be accessible when importing the containing directory somewhere else, this results in a lot of index.ts
files with predictable content.
Example
Directory: my-component
my-component-config.ts
my-component.ts
index.ts
What does index.ts
contain? Of course, it contains
export * from "./my-component-config"
export * from "./my-component"
Which is obvious.
For 10 component directories, that means: 10 index.ts
files containing 100% redundant information.
How can I make TypeScript(/Node) implicitly create index.ts
files on the fly, that need not be stored on the hard disk?