Skip to content

Commit a29ad8c

Browse files
committed
chore(graphql-api): upgrade code-gen to 1.x
1 parent 836739d commit a29ad8c

File tree

3 files changed

+419
-578
lines changed

3 files changed

+419
-578
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: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,23 @@
3333
"@accounts/types": "^0.19.0",
3434
"@gql2ts/from-schema": "1.10.1",
3535
"@gql2ts/types": "1.9.0",
36-
"@graphql-modules/core": "0.7.10",
37-
"@types/jest": "24.0.18",
38-
"@types/request-ip": "0.0.34",
39-
"concurrently": "4.1.2",
40-
"graphql": "14.5.3",
41-
"graphql-code-generator": "0.18.2",
42-
"graphql-codegen-add": "0.18.2",
43-
"graphql-codegen-typescript-common": "0.18.2",
44-
"graphql-codegen-typescript-resolvers": "0.18.2",
45-
"graphql-codegen-typescript-server": "0.18.2",
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",
42+
"@graphql-modules/core": "0.7.9",
43+
"@types/jest": "24.0.16",
44+
"@types/request-ip": "0.0.33",
45+
"concurrently": "4.1.1",
46+
"graphql": "14.4.2",
4647
"graphql-tools": "4.0.5",
4748
"jest": "24.9.0",
4849
"lodash": "4.17.15",
4950
"nock": "10.0.6",
50-
"ts-node": "8.3.0"
51+
"ts-node": "8.3.0",
52+
"typescript": "^3.5.3"
5153
},
5254
"peerDependencies": {
5355
"@accounts/password": "^0.9.3",
@@ -61,5 +63,8 @@
6163
"graphql-toolkit": "^0.5.10",
6264
"request-ip": "2.1.3",
6365
"tslib": "1.10.0"
66+
},
67+
"optionalDependencies": {
68+
"type-graphql": "^0.17.5"
6469
}
6570
}

0 commit comments

Comments
 (0)