Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING CHANGE: update graphql version and generator plugin #797

Merged
merged 4 commits into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Release
on: push
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
Expand Down
18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
},
"bugs": "https://github.com/xolvio/chimp/issues",
"dependencies": {
"@graphql-tools/graphql-file-loader": "^6.2.5",
"@graphql-tools/load": "^6.2.5",
"@graphql-tools/merge": "^6.2.5",
"@graphql-tools/graphql-file-loader": "^7.5.5",
"@graphql-tools/load": "^7.7.7",
"@graphql-tools/merge": "^8.3.6",
"@oclif/command": "^1",
"@oclif/config": "^1",
"@oclif/plugin-help": "^3",
"debug": "^4.3.1",
"enquirer": "^2.3.6",
"find-package-json": "^1.2.0",
"graphql": "15.5.1",
"graphql": "16.6.0",
"graphql-tag": "^2.10.3",
"handlebars": "^4.0.12",
"listr2": "3.3.3",
Expand All @@ -33,7 +33,7 @@
"@types/node": "^14.14.22",
"chai": "^4.2.0",
"copyfiles": "^2.4.1",
"eslint": "^5.13",
"eslint": "^7.32.0",
"eslint-config-oclif": "^3.1",
"eslint-config-oclif-typescript": "^0.1",
"eslint-config-prettier": "^7.2.0",
Expand All @@ -47,7 +47,7 @@
"testdouble-jest": "^2.0.0",
"ts-jest": "^26.4.4",
"ts-node": "^8",
"typescript": "^3.3",
"typescript": "4.4.4",
"wait-on": "^5.2.1"
},
"engines": {
Expand All @@ -74,6 +74,12 @@
]
},
"repository": "xolvio/chimp",
"release": {
"branches": ["master"]
},
"publishConfig": {
"access": "public"
},
"scripts": {
"postpack": "rm -f oclif.manifest.json",
"posttest": "eslint . --ext .ts --cache",
Expand Down
9 changes: 6 additions & 3 deletions src/generate/runtime-config-helpers/getCodegenConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ module.exports = function ({ contextType } = {}) {
objectIdType: 'string',
federation: true,
mappers,
makeResolverTypeCallable: true,
scalars: {
Upload: 'Promise<GraphQLFileUpload>',
},
Expand All @@ -68,16 +69,18 @@ module.exports = function ({ contextType } = {}) {
'typescript-resolvers',
'typescript-operations',
'chimp-graphql-codegen-plugin',
{ add: 'export {GqlContext};' },
{ add: { content: 'export {GqlContext};'} },
{
add: `
add: {
content: `
import { ReadStream } from "fs-capacitor";
interface GraphQLFileUpload {
filename: string;
mimetype: string;
encoding: string;
createReadStream(options?:{encoding?: string, highWaterMark?: number}): ReadStream;
}`,
}`
},
},
],
},
Expand Down
1 change: 0 additions & 1 deletion src/scripts/end-to-end-test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies */
// @ts-ignore
import shelljs from 'shelljs';
import path from 'path';
Expand Down
Loading