Skip to content

Commit d507e7a

Browse files
committed
fix(graphql): type helpers metadata inheriting
Yarn PnP doesn't implicitly inherit transitive peer dependencies class-validator and class-transformer from @nestjs/mapped-types. nestjs/swagger#2169
1 parent 1d98efb commit d507e7a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/graphql/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
"@apollo/subgraph": "^0.1.5 || ^0.3.0 || ^0.4.0 || ^2.0.0",
4747
"@nestjs/common": "^8.2.3 || ^9.0.0",
4848
"@nestjs/core": "^8.2.3 || ^9.0.0",
49+
"class-transformer": "*",
50+
"class-validator": "*",
4951
"graphql": "^15.8.0 || ^16.0.0",
5052
"reflect-metadata": "^0.1.13",
5153
"ts-morph": "^13.0.2 || ^14.0.0 || ^15.0.0 || ^16.0.0"
@@ -54,6 +56,12 @@
5456
"@apollo/subgraph": {
5557
"optional": true
5658
},
59+
"class-transformer": {
60+
"optional": true
61+
},
62+
"class-validator": {
63+
"optional": true
64+
},
5765
"ts-morph": {
5866
"optional": true
5967
}

0 commit comments

Comments
 (0)