generate-graphql-client
Advanced tools
@@ -51,3 +51,3 @@ "use strict"; | ||
| ": <T = ".concat(op.returnType, ">(payload: ").concat(op.argsType, ", ") + | ||
| "options?: Options) => Promise<T> "); | ||
| "options?: Options) => Promise<T>"); | ||
| }); | ||
@@ -54,0 +54,0 @@ }; |
+16
-16
| { | ||
| "name": "generate-graphql-client", | ||
| "description": "Generate GraphQL clients (in TypeScript) from GraphQL schemas.", | ||
| "version": "3.1.1", | ||
| "version": "3.1.2", | ||
| "main": "./lib/index.js", | ||
@@ -14,2 +14,12 @@ "types": "./lib/index.d.ts", | ||
| }, | ||
| "scripts": { | ||
| "build": "tsc", | ||
| "dev": "tsc && generate-graphql-introspection -s example/schema.graphql -o example/introspection.json && node ./bin/generate-graphql-client --config example/config.json", | ||
| "build:example": "npm run example:github && npm run example:gitlab", | ||
| "example:github": "tsc && generate-graphql-introspection -s example/github/github.graphql -o example/github/github.json && node ./bin/generate-graphql-client --config example/github/config.json", | ||
| "example:gitlab": "tsc && generate-graphql-introspection -s example/gitlab/gitlab.graphql -o example/gitlab/gitlab.json && node ./bin/generate-graphql-client --config example/gitlab/config.json", | ||
| "format": "prettier --write .", | ||
| "lint": "eslint --ext .js,.ts,.tsx ./src", | ||
| "lint:fix": "eslint --fix --ext .js,.ts,.tsx ./src" | ||
| }, | ||
| "dependencies": { | ||
@@ -25,6 +35,6 @@ "resolve-cli-args": "^1.1.0" | ||
| "eslint-config-prettier": "^8.10.0", | ||
| "generate-graphql-introspection": "workspace:^", | ||
| "generate-graphql-query": "workspace:^", | ||
| "prettier": "2.8.8", | ||
| "typescript": "5.1.6", | ||
| "generate-graphql-introspection": "^1.0.0", | ||
| "generate-graphql-query": "^3.1.1" | ||
| "typescript": "5.1.6" | ||
| }, | ||
@@ -52,13 +62,3 @@ "homepage": "https://github.com/john-yuan/graphql-toolkit/tree/main/packages/generate-graphql-client", | ||
| }, | ||
| "license": "MIT", | ||
| "scripts": { | ||
| "build": "tsc", | ||
| "dev": "tsc && generate-graphql-introspection -s example/schema.graphql -o example/introspection.json && node ./bin/generate-graphql-client --config example/config.json", | ||
| "build:example": "npm run example:github && npm run example:gitlab", | ||
| "example:github": "tsc && generate-graphql-introspection -s example/github/github.graphql -o example/github/github.json && node ./bin/generate-graphql-client --config example/github/config.json", | ||
| "example:gitlab": "tsc && generate-graphql-introspection -s example/gitlab/gitlab.graphql -o example/gitlab/gitlab.json && node ./bin/generate-graphql-client --config example/gitlab/config.json", | ||
| "format": "prettier --write .", | ||
| "lint": "eslint --ext .js,.ts,.tsx ./src", | ||
| "lint:fix": "eslint --fix --ext .js,.ts,.tsx ./src" | ||
| } | ||
| } | ||
| "license": "MIT" | ||
| } |
94179
0.01%