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.
This commit is contained in:
Кирилл Осипков 2026-05-27 15:10:51 +03:00
parent 33f426925b
commit 755a093b61
1 changed files with 12 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@erp/plugin-sdk", "name": "@erp/plugin-sdk",
"version": "1.2.1", "version": "1.2.2",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"bin": { "bin": {
@ -24,6 +24,16 @@
"registry": "https://gitea.ss.3w.com.ua/api/packages/erp/npm/" "registry": "https://gitea.ss.3w.com.ua/api/packages/erp/npm/"
}, },
"dependencies": { "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/common": "^11.1.23",
"@nestjs/core": "^11.1.23", "@nestjs/core": "^11.1.23",
"@nestjs/microservices": "^11.1.23", "@nestjs/microservices": "^11.1.23",
@ -32,7 +42,6 @@
"@types/uuid": "^9.0.8", "@types/uuid": "^9.0.8",
"reflect-metadata": "^0.2.2", "reflect-metadata": "^0.2.2",
"rxjs": "^7.8.2", "rxjs": "^7.8.2",
"typescript": "^6.0.3", "typescript": "^6.0.3"
"uuid": "^9.0.1"
} }
} }