import { HttpModule } from '@nestjs/axios' ; import { Global , Module } from '@nestjs/common' ; import { CqrsModule } from '@nestjs/cqrs' ; import { ApiConfigService } from './services/api-config.service' ; import { AwsS3Service } from './services/aws-s3.service' ; import { GeneratorService } from './services/generator.service' ; import { TranslationService } from './services/translation.service' ; import { ValidatorService } from './services/validator.service' ; const providers = [ ApiConfigService , ValidatorService , AwsS3Service , GeneratorService , TranslationService , ] ; @ Global ( ) @ Module ( { providers , imports : [ HttpModule , CqrsModule ] , exports : [ ... providers , HttpModule , CqrsModule ] , } ) export class SharedModule { }