diff --git a/README.md b/README.md index 42aeb48..ee8bbf7 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ export class AppModule {} ```ts import { Inject, Injectable, OnModuleInit } from '@nestjs/common'; import { ClientGrpc } from '@nestjs/microservices'; -import { AuthServiceClient } from '@teacinema/contracts/gen/auth'; +import { AuthServiceClient } from '@teacinema/contracts/gen/ts/auth'; @Injectable() export class AuthProxy implements OnModuleInit { @@ -126,7 +126,7 @@ export class AuthProxy implements OnModuleInit { ```ts import { Controller } from '@nestjs/common'; import { GrpcMethod } from '@nestjs/microservices'; -import { AuthServiceController, AuthServiceControllerMethods } from '@teacinema/contracts/gen/auth'; +import { AuthServiceController, AuthServiceControllerMethods } from '@teacinema/contracts/gen/ts/auth'; @Controller() @AuthServiceControllerMethods() @@ -196,4 +196,4 @@ yarn generate ```bash yarn docs open docs/index.html -``` \ No newline at end of file +``` diff --git a/src/proto/paths.ts b/src/proto/paths.ts index 78e5a09..e49d6fa 100644 --- a/src/proto/paths.ts +++ b/src/proto/paths.ts @@ -28,4 +28,6 @@ export const PROTO_PATHS = { ACCOUNT: join(__dirname, '../../proto/account.proto'), /** Путь к `users.proto` (пакет `users.v1`) */ USERS: join(__dirname, '../../proto/users.proto'), + /** Путь к `media.proto` (пакет `media.v1`) */ + MEDIA: join(__dirname, '../../proto/media.proto'), } as const