Skip to content

Commit

Permalink
chore: enhance to use possible folder/domain and work with
Browse files Browse the repository at this point in the history
  • Loading branch information
gutyerrez committed Sep 10, 2024
1 parent 7d998c9 commit 9fdc36b
Showing 1 changed file with 22 additions and 32 deletions.
54 changes: 22 additions & 32 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,52 +152,42 @@ export default [
'module'
],
[
'/^@[^/]+\\/[^/]+\\/controllers\\//',
'/^@[^/]+\\/[^/]+\\/controllers\\/http/',
'/^@[^/]+\\/[^/]+\\/controllers\\/grpc/',
'/^@[^/]+\\/[^/]+\\/controllers\\/serializers/',
'/^@[^/]+\\/[^/]+\\/controllers\\/validators/'
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/controllers\\//',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/controllers\\/(http|grpc|serializers|validators)/'
],
[
'/^@[^/]+\\/[^/]+\\/middlewares\\//',
'/^@[^/]+\\/[^/]+\\/middlewares\\//http/',
'/^@[^/]+\\/[^/]+\\/middlewares\\//grpc/'
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/middlewares\\//',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/middlewares\\//(http|grpc)/'
],
[
'/^@[^/]+\\/[^/]+\\/database\\//',
'/^@[^/]+\\/[^/]+\\/storage\\//',
'/^@[^/]+\\/[^/]+\\/providers\\/interfaces/',
'/^@[^/]+\\/[^/]+\\/providers\\/implementations/'
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/database\\//',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/storage\\//',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/storage\\//repositories\\/(interfaces|implementations)/',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/providers\\/(interfaces|implementations)/'
],
[
'/^@[^/]+\\/[^/]+\\/services\\//',
'/^@[^/]+\\/[^/]+\\/usecases\\//'
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/services\\//',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/usecases\\//'
],
[
'/^@[^/]+\\/[^/]+\\/data\\//',
'/^@[^/]+\\/[^/]+\\/models\\//',
'/^@[^/]+\\/[^/]+\\/entity\\//',
'/^@[^/]+\\/[^/]+\\/entities\\//'
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/data\\//',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/models\\//',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/entity\\//',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/entities\\//'
],
[
'/^@[^/]+\\/[^/]+\\/cache\\//',
'/^@[^/]+\\/[^/]+\\/cache\\/interfaces/',
'/^@[^/]+\\/[^/]+\\/cache\\/implementations/',
'/^@[^/]+\\/[^/]+\\/queues\\//',
'/^@[^/]+\\/[^/]+\\/queues\\/interfaces/',
'/^@[^/]+\\/[^/]+\\/queues\\/implementations/',
'/^@[^/]+\\/[^/]+\\/queues\\/bull/',
'/^@[^/]+\\/[^/]+\\/queues\\/redis/',
'/^@[^/]+\\/[^/]+\\/queues\\/common/'
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/cache\\//',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/cache\\/(interfaces|implementations)/',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/queues\\//',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/queues\\/(interfaces|implementations|bull|redis|memory|common)/'
],
[
'/^@[^/]+\\/[^/]+\\/dtos\\//',
'/^@[^/]+\\/[^/]+\\/repositories\\/interfaces/',
'/^@[^/]+\\/[^/]+\\/repositories\\/implementations/'
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/dtos\\//',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/repositories\\/(interfaces|implementations)/'
],
[
'/^@[^/]+\\/[^/]+\\/enums\\//',
'/^@[^/]+\\/[^/]+\\/exceptions\\//'
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/enums\\//',
'/^@[^/]+\\/[^/]+(?:\\/[^/]+)?\\/exceptions\\//'
],
[
'/^@prisma/client/',
Expand Down

0 comments on commit 9fdc36b

Please sign in to comment.