Skip to content

Commit

Permalink
fix(deps): move graphql-tag to devDeps from peerDeps
Browse files Browse the repository at this point in the history
`graphql-tag` is only used in .spec files within the `typescript-react-apollo` package. Similar to `typescript-apollo-angular`, this commit moves `graphql-tag` to devDependencies so package consumers aren't required to install it to remove warning:

```
warning " > @graphql-codegen/typescript-react-apollo@4.3.0" has unmet peer dependency "graphql-tag@^2.0.0".
```

Signed-off-by: Scott Christopherson <scott@mondoo.com>
  • Loading branch information
scottopherson committed Aug 1, 2024
1 parent 5b157ad commit 623750b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/plugins/typescript/react-apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
"test": "jest --no-watchman --config ../../../../jest.config.js --forceExit"
},
"peerDependencies": {
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
"graphql-tag": "^2.0.0"
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
},
"dependencies": {
"@graphql-codegen/plugin-helpers": "^3.0.0",
Expand All @@ -48,7 +47,8 @@
"tslib": "~2.6.0"
},
"devDependencies": {
"@graphql-codegen/testing": "1.18.0"
"@graphql-codegen/testing": "1.18.0",
"graphql-tag": "^2.12.6"
},
"publishConfig": {
"directory": "dist",
Expand Down

0 comments on commit 623750b

Please sign in to comment.