Skip to content

Consider barrel files in recursive folders #4

Open
@apollox

Description

Is it possible to extend the feature of recursive folder detection, that it also consider existing barrel files in the recursive folders?
This would simplify the barrel files, especially in higher hierarchy levels and there are less file changes in a commit because only the nearest existing index.ts would be change with the command Update Barrel and not all in the folder tree.

Example structure

  • shared
    • index.ts
    • model
      • index.ts
      • user.ts
      • person.ts
      • address.ts
    • service
      • index.ts
      • user.service.ts
      • person.service.ts

Current 'shared/index.ts'

export * from './model/address';
export * from './model/person';
export * from './model/user';
export * from './service/person.service';
export * from './service/person.service';

Current 'shared/model/index.ts'

export * from './address';
export * from './person';
export * from './user';

Expected 'shared/index.ts'

export * from './model';
export * from './service';

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions