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:
parent
33f426925b
commit
755a093b61
15
package.json
15
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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue