From 755a093b615698ffd29a262942eb889ee3c3fd33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB=20=D0=9E=D1=81=D0=B8?= =?UTF-8?q?=D0=BF=D0=BA=D0=BE=D0=B2?= Date: Wed, 27 May 2026 15:10:51 +0300 Subject: [PATCH] fix: move @nestjs/*, rxjs, reflect-metadata to peerDependencies instanceof checks for NestJS classes (TransformInterceptor, guards, etc.) now work correctly in consuming plugins because they share the same NestJS singletons instead of getting a separate copy from the SDK. --- package.json | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1349912..61faeaa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@erp/plugin-sdk", - "version": "1.2.1", + "version": "1.2.2", "main": "dist/index.js", "types": "dist/index.d.ts", "bin": { @@ -24,6 +24,16 @@ "registry": "https://gitea.ss.3w.com.ua/api/packages/erp/npm/" }, "dependencies": { + "uuid": "^9.0.1" + }, + "peerDependencies": { + "@nestjs/common": "^11.1.23", + "@nestjs/core": "^11.1.23", + "@nestjs/microservices": "^11.1.23", + "reflect-metadata": "^0.2.2", + "rxjs": "^7.8.2" + }, + "devDependencies": { "@nestjs/common": "^11.1.23", "@nestjs/core": "^11.1.23", "@nestjs/microservices": "^11.1.23", @@ -32,7 +42,6 @@ "@types/uuid": "^9.0.8", "reflect-metadata": "^0.2.2", "rxjs": "^7.8.2", - "typescript": "^6.0.3", - "uuid": "^9.0.1" + "typescript": "^6.0.3" } }