Skip to content

Commit 81e5bfc

Browse files
committed
chore(graphql-api): upgrade code-gen to 1.x
1 parent dca8132 commit 81e5bfc

File tree

3 files changed

+414
-574
lines changed

3 files changed

+414
-574
lines changed

packages/graphql-api/codegen.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ generates:
77
noNamespaces: true
88
plugins:
99
- add: /* tslint:disable */
10-
- typescript-common
11-
- typescript-server
10+
- typescript
1211
- typescript-resolvers
12+
- typescript-operations

packages/graphql-api/package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,23 @@
3333
"@accounts/types": "^0.18.0",
3434
"@gql2ts/from-schema": "1.10.1",
3535
"@gql2ts/types": "1.9.0",
36+
"@graphql-codegen/add": "^1.6.1",
37+
"@graphql-codegen/cli": "^1.6.1",
38+
"@graphql-codegen/typescript": "^1.6.1",
39+
"@graphql-codegen/typescript-operations": "^1.6.1",
40+
"@graphql-codegen/typescript-resolvers": "^1.6.1",
41+
"@graphql-codegen/typescript-type-graphql": "^1.6.1",
3642
"@graphql-modules/core": "0.7.9",
37-
"@types/graphql": "14.2.3",
3843
"@types/jest": "24.0.16",
3944
"@types/request-ip": "0.0.33",
4045
"concurrently": "4.1.1",
4146
"graphql": "14.4.2",
42-
"graphql-code-generator": "0.18.2",
43-
"graphql-codegen-add": "0.18.2",
44-
"graphql-codegen-typescript-common": "0.18.2",
45-
"graphql-codegen-typescript-resolvers": "0.18.2",
46-
"graphql-codegen-typescript-server": "0.18.2",
4747
"graphql-tools": "4.0.5",
4848
"jest": "24.8.0",
4949
"lodash": "4.17.15",
5050
"nock": "10.0.6",
51-
"ts-node": "8.3.0"
51+
"ts-node": "8.3.0",
52+
"typescript": "^3.5.3"
5253
},
5354
"peerDependencies": {
5455
"@accounts/password": "^0.9.3",
@@ -62,5 +63,8 @@
6263
"graphql-toolkit": "^0.4.1",
6364
"request-ip": "2.1.3",
6465
"tslib": "1.10.0"
66+
},
67+
"optionalDependencies": {
68+
"type-graphql": "^0.17.5"
6569
}
6670
}

0 commit comments

Comments
 (0)