Compare commits

...

2 Commits

Author SHA1 Message Date
f908a46d70 1.1.7
All checks were successful
Publish / Publish npm package action (push) Successful in 43s
2026-04-01 06:50:48 +03:00
09a13b587f feat: add media proto path 2026-04-01 06:50:38 +03:00
3 changed files with 6 additions and 4 deletions

View File

@ -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
```
```

View File

@ -1,6 +1,6 @@
{
"name": "@teacinema/contracts",
"version": "1.1.6",
"version": "1.1.7",
"description": "Protocol Buffers contracts for microservices",
"scripts": {
"build": "tsc -p tsconfig.build.json",

View File

@ -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