rsnext/examples/with-typescript-graphql/package.json
Jan Beseda bb81f2e6a6
fix(example): with-typescript-graphql graphql-let package migrate (#29996)
## Bug

- Partially fixes #25854 
- Badly specified package dependency version (`graphql-let`). The new major version required manual migration. As specified [here](https://github.com/piglovesyou/graphql-let/releases/tag/v0.18.0).
- In `lib/resolvers.ts`
```Module '"*.graphqls"' has no exported member 'MutationResolvers'. Did you mean to use 'import MutationResolvers from "*.graphqls"' instead?ts(2614)```


## Fixes

- Migrate as described in migration guide for `graphql-let` above.
- Update some npm packages along the way.
2022-02-06 17:48:51 +00:00

42 lines
1.3 KiB
JSON

{
"private": true,
"scripts": {
"codegen": "graphql-let",
"dev": "yarn codegen && next",
"build": "yarn codegen && next build",
"test": "yarn codegen && jest",
"start": "next start"
},
"dependencies": {
"@apollo/client": "^3.1.3",
"@graphql-tools/load-files": "6.0.18",
"@graphql-tools/merge": "6.0.18",
"@graphql-tools/schema": "6.0.18",
"apollo-server-micro": "^2.16.1",
"graphql": "15.3.0",
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@graphql-codegen/cli": "^2.2.1",
"@graphql-codegen/import-types-preset": "^2.1.6",
"@graphql-codegen/plugin-helpers": "^2.2.0",
"@graphql-codegen/typescript": "^2.2.4",
"@graphql-codegen/typescript-operations": "^2.1.8",
"@graphql-codegen/typescript-react-apollo": "^3.1.6",
"@graphql-codegen/typescript-resolvers": "^2.3.2",
"@types/react": "^16.9.46",
"@types/react-dom": "^16.9.8",
"@types/react-test-renderer": "^17.0.1",
"@types/jest": "^27.0.2",
"@types/mocha": "^9.0.0",
"babel-jest": "27.2.5",
"graphql-let": "^0.18.6",
"graphql-tag": "2.11.0",
"jest": "^27.2.5",
"react-test-renderer": "^17.0.1",
"typescript": "^4.5.4",
"yaml-loader": "0.6.0"
}
}