Skip to content

Commit

Permalink
chore: mark optional peer dependencies properly
Browse files Browse the repository at this point in the history
Since `class-validator` and `class-transformer` aren't required for consumers of this package, they must be marked as optional.
About this new entry: https://docs.npmjs.com/cli/v7/configuring-npm/package-json#peerdependenciesmeta
  • Loading branch information
micalevisk committed Nov 10, 2021
1 parent 317602b commit 080f019
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package.json
Expand Up @@ -47,6 +47,14 @@
"class-validator": "^0.11.1 || ^0.12.0 || ^0.13.0",
"reflect-metadata": "^0.1.12"
},
"peerDependenciesMeta": {
"class-validator": {
"optional": true
},
"class-transformer": {
"optional": true
}
}
"lint-staged": {
"*.ts": [
"prettier --write"
Expand Down

0 comments on commit 080f019

Please sign in to comment.