From 2c6e0458411e9daad61e6c1a50ab7132bff086ad Mon Sep 17 00:00:00 2001 From: sbriat Date: Tue, 27 Jun 2023 14:27:21 +0200 Subject: [PATCH] move ports to libs --- src/{ => libs}/ports/message-publisher.port.ts | 0 src/modules/ad/infrastructure/message-publisher.ts | 2 +- .../core/usecases/repositories.health-indicator.usecase.ts | 2 +- src/modules/health/infrastructure/message-publisher.ts | 2 +- tsconfig.json | 1 - 5 files changed, 3 insertions(+), 4 deletions(-) rename src/{ => libs}/ports/message-publisher.port.ts (100%) diff --git a/src/ports/message-publisher.port.ts b/src/libs/ports/message-publisher.port.ts similarity index 100% rename from src/ports/message-publisher.port.ts rename to src/libs/ports/message-publisher.port.ts diff --git a/src/modules/ad/infrastructure/message-publisher.ts b/src/modules/ad/infrastructure/message-publisher.ts index 10b2a0d..69122e5 100644 --- a/src/modules/ad/infrastructure/message-publisher.ts +++ b/src/modules/ad/infrastructure/message-publisher.ts @@ -1,7 +1,7 @@ import { Inject, Injectable } from '@nestjs/common'; import { MessageBrokerPublisher } from '@mobicoop/message-broker-module'; -import { MessagePublisherPort } from '@ports/message-publisher.port'; import { MESSAGE_BROKER_PUBLISHER } from '@src/app.constants'; +import { MessagePublisherPort } from '@libs/ports/message-publisher.port'; @Injectable() export class MessagePublisher implements MessagePublisherPort { diff --git a/src/modules/health/core/usecases/repositories.health-indicator.usecase.ts b/src/modules/health/core/usecases/repositories.health-indicator.usecase.ts index 9600c31..36e95c1 100644 --- a/src/modules/health/core/usecases/repositories.health-indicator.usecase.ts +++ b/src/modules/health/core/usecases/repositories.health-indicator.usecase.ts @@ -9,8 +9,8 @@ import { CheckRepositoryPort } from '../ports/check-repository.port'; import { AD_REPOSITORY } from '@modules/health/health.di-tokens'; import { AdRepositoryPort } from '@modules/ad/core/ports/ad.repository.port'; import { MESSAGE_PUBLISHER } from '@src/app.constants'; -import { MessagePublisherPort } from '@ports/message-publisher.port'; import { LOGGING_AD_HEALTH_CRIT } from '@modules/health/health.constants'; +import { MessagePublisherPort } from '@libs/ports/message-publisher.port'; @Injectable() export class RepositoriesHealthIndicatorUseCase extends HealthIndicator { diff --git a/src/modules/health/infrastructure/message-publisher.ts b/src/modules/health/infrastructure/message-publisher.ts index 070f5b1..036743b 100644 --- a/src/modules/health/infrastructure/message-publisher.ts +++ b/src/modules/health/infrastructure/message-publisher.ts @@ -1,7 +1,7 @@ import { Inject, Injectable } from '@nestjs/common'; import { MESSAGE_BROKER_PUBLISHER } from '../../../app.constants'; import { MessageBrokerPublisher } from '@mobicoop/message-broker-module'; -import { MessagePublisherPort } from '@ports/message-publisher.port'; +import { MessagePublisherPort } from '@libs/ports/message-publisher.port'; @Injectable() export class MessagePublisher implements MessagePublisherPort { diff --git a/tsconfig.json b/tsconfig.json index e082b4e..546b2f7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,7 +20,6 @@ "paths": { "@libs/*": ["src/libs/*"], "@modules/*": ["src/modules/*"], - "@ports/*": ["src/ports/*"], "@src/*": ["src/*"], } }