@graphql-codegen/cli 2.7.0 → 2.8.0-alpha-36b27f965.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/bin.js +13 -0
- package/cjs/cli.js +60 -0
- package/cjs/codegen.js +332 -0
- package/cjs/config.js +303 -0
- package/cjs/generate-and-save.js +110 -0
- package/cjs/graphql-config.js +69 -0
- package/cjs/hooks.js +87 -0
- package/cjs/index.js +13 -0
- package/cjs/init/helpers.js +64 -0
- package/cjs/init/index.js +60 -0
- package/cjs/init/plugins.js +163 -0
- package/cjs/init/questions.js +147 -0
- package/cjs/init/targets.js +44 -0
- package/cjs/init/types.js +14 -0
- package/cjs/load.js +93 -0
- package/cjs/package.json +1 -0
- package/cjs/plugins.js +45 -0
- package/cjs/presets.js +46 -0
- package/cjs/utils/cli-error.js +25 -0
- package/cjs/utils/debugging.js +27 -0
- package/cjs/utils/file-system.js +26 -0
- package/cjs/utils/indentString.js +37 -0
- package/cjs/utils/listr-renderer.js +136 -0
- package/cjs/utils/logger.js +25 -0
- package/cjs/utils/watcher.js +140 -0
- package/esm/bin.js +11 -0
- package/esm/cli.js +32 -0
- package/esm/codegen.js +327 -0
- package/esm/config.js +290 -0
- package/esm/generate-and-save.js +105 -0
- package/esm/graphql-config.js +64 -0
- package/esm/hooks.js +83 -0
- package/esm/index.js +7 -0
- package/esm/init/helpers.js +55 -0
- package/esm/init/index.js +55 -0
- package/esm/init/plugins.js +160 -0
- package/esm/init/questions.js +140 -0
- package/esm/init/targets.js +40 -0
- package/esm/init/types.js +11 -0
- package/esm/load.js +88 -0
- package/esm/plugins.js +41 -0
- package/esm/presets.js +42 -0
- package/esm/utils/cli-error.js +20 -0
- package/esm/utils/debugging.js +21 -0
- package/esm/utils/file-system.js +19 -0
- package/esm/utils/indentString.js +33 -0
- package/esm/utils/listr-renderer.js +130 -0
- package/esm/utils/logger.js +18 -0
- package/esm/utils/watcher.js +135 -0
- package/package.json +31 -23
- package/typings/bin.d.ts +2 -0
- package/{cli.d.ts → typings/cli.d.ts} +0 -0
- package/{codegen.d.ts → typings/codegen.d.ts} +1 -1
- package/{config.d.ts → typings/config.d.ts} +0 -0
- package/{generate-and-save.d.ts → typings/generate-and-save.d.ts} +1 -1
- package/{graphql-config.d.ts → typings/graphql-config.d.ts} +0 -0
- package/{hooks.d.ts → typings/hooks.d.ts} +0 -0
- package/typings/index.d.ts +7 -0
- package/{init → typings/init}/helpers.d.ts +1 -1
- package/{init → typings/init}/index.d.ts +0 -0
- package/{init → typings/init}/plugins.d.ts +1 -1
- package/{init → typings/init}/questions.d.ts +1 -1
- package/{init → typings/init}/targets.d.ts +1 -1
- package/{init → typings/init}/types.d.ts +0 -0
- package/{load.d.ts → typings/load.d.ts} +0 -0
- package/{plugins.d.ts → typings/plugins.d.ts} +0 -0
- package/{presets.d.ts → typings/presets.d.ts} +0 -0
- package/{utils → typings/utils}/cli-error.d.ts +0 -0
- package/{utils → typings/utils}/debugging.d.ts +0 -0
- package/{utils → typings/utils}/file-system.d.ts +0 -0
- package/{utils → typings/utils}/indentString.d.ts +0 -0
- package/{utils → typings/utils}/listr-renderer.d.ts +0 -0
- package/{utils → typings/utils}/logger.d.ts +0 -0
- package/{utils → typings/utils}/watcher.d.ts +1 -1
- package/bin.d.ts +0 -1
- package/bin.js +0 -1891
- package/index.d.ts +0 -7
- package/index.js +0 -1902
- package/index.mjs +0 -1858
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0-alpha-36b27f965.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
6
6
|
},
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"@graphql-codegen/core": "2.5.1",
|
|
9
9
|
"@graphql-codegen/plugin-helpers": "^2.4.1",
|
|
10
10
|
"@graphql-tools/apollo-engine-loader": "^7.3.1",
|
|
11
|
-
"@graphql-tools/code-file-loader": "^7.0
|
|
12
|
-
"@graphql-tools/git-loader": "^7.0
|
|
13
|
-
"@graphql-tools/github-loader": "^7.
|
|
14
|
-
"@graphql-tools/graphql-file-loader": "^7.0
|
|
15
|
-
"@graphql-tools/json-file-loader": "^7.
|
|
11
|
+
"@graphql-tools/code-file-loader": "^7.3.0",
|
|
12
|
+
"@graphql-tools/git-loader": "^7.2.0",
|
|
13
|
+
"@graphql-tools/github-loader": "^7.3.1",
|
|
14
|
+
"@graphql-tools/graphql-file-loader": "^7.4.0",
|
|
15
|
+
"@graphql-tools/json-file-loader": "^7.4.0",
|
|
16
16
|
"@graphql-tools/load": "^7.3.0",
|
|
17
17
|
"@graphql-tools/prisma-loader": "^7.2.2",
|
|
18
18
|
"@graphql-tools/url-loader": "^7.12.1",
|
|
19
|
-
"@graphql-tools/utils": "^8.
|
|
19
|
+
"@graphql-tools/utils": "^8.8.0",
|
|
20
20
|
"ansi-escapes": "^4.3.1",
|
|
21
21
|
"chalk": "^4.1.0",
|
|
22
22
|
"change-case-all": "1.0.14",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"cosmiconfig": "^7.0.0",
|
|
26
26
|
"debounce": "^1.2.0",
|
|
27
27
|
"detect-indent": "^6.0.0",
|
|
28
|
-
"graphql-config": "^4.1
|
|
28
|
+
"graphql-config": "^4.3.1",
|
|
29
29
|
"inquirer": "^8.0.0",
|
|
30
30
|
"is-glob": "^4.0.1",
|
|
31
31
|
"json-to-pretty-yaml": "^1.2.2",
|
|
@@ -65,26 +65,34 @@
|
|
|
65
65
|
],
|
|
66
66
|
"author": "Dotan Simha <dotansimha@gmail.com>",
|
|
67
67
|
"license": "MIT",
|
|
68
|
-
"main": "index.js",
|
|
69
|
-
"module": "index.
|
|
70
|
-
"typings": "index.d.ts",
|
|
68
|
+
"main": "cjs/index.js",
|
|
69
|
+
"module": "esm/index.js",
|
|
70
|
+
"typings": "typings/index.d.ts",
|
|
71
71
|
"typescript": {
|
|
72
|
-
"definition": "index.d.ts"
|
|
72
|
+
"definition": "typings/index.d.ts"
|
|
73
73
|
},
|
|
74
|
+
"type": "module",
|
|
74
75
|
"exports": {
|
|
75
|
-
"./package.json": "./package.json",
|
|
76
76
|
".": {
|
|
77
|
-
"require":
|
|
78
|
-
|
|
77
|
+
"require": {
|
|
78
|
+
"types": "./typings/index.d.ts",
|
|
79
|
+
"default": "./cjs/index.js"
|
|
80
|
+
},
|
|
81
|
+
"import": {
|
|
82
|
+
"types": "./typings/index.d.ts",
|
|
83
|
+
"default": "./esm/index.js"
|
|
84
|
+
},
|
|
85
|
+
"default": {
|
|
86
|
+
"types": "./typings/index.d.ts",
|
|
87
|
+
"default": "./esm/index.js"
|
|
88
|
+
}
|
|
79
89
|
},
|
|
80
|
-
"
|
|
81
|
-
"require": "./*.js",
|
|
82
|
-
"import": "./*.mjs"
|
|
83
|
-
}
|
|
90
|
+
"./package.json": "./package.json"
|
|
84
91
|
},
|
|
85
92
|
"bin": {
|
|
86
|
-
"gql-gen": "bin.js",
|
|
87
|
-
"graphql-codegen": "bin.js",
|
|
88
|
-
"graphql-code-generator": "bin.js"
|
|
93
|
+
"gql-gen": "cjs/bin.js",
|
|
94
|
+
"graphql-codegen": "cjs/bin.js",
|
|
95
|
+
"graphql-code-generator": "cjs/bin.js",
|
|
96
|
+
"graphql-codegen-esm": "esm/bin.js"
|
|
89
97
|
}
|
|
90
|
-
}
|
|
98
|
+
}
|
package/typings/bin.d.ts
ADDED
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Types } from '@graphql-codegen/plugin-helpers';
|
|
2
|
-
import { CodegenContext } from './config';
|
|
2
|
+
import { CodegenContext } from './config.js';
|
|
3
3
|
export declare function generate(input: CodegenContext | (Types.Config & {
|
|
4
4
|
cwd?: string;
|
|
5
5
|
}), saveToFile?: boolean): Promise<Types.FileOutput[] | any>;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { executeCodegen } from './codegen.js';
|
|
2
|
+
export { generate } from './generate-and-save.js';
|
|
3
|
+
export * from './config.js';
|
|
4
|
+
export * from './init/index.js';
|
|
5
|
+
export * from './utils/cli-error.js';
|
|
6
|
+
export * from './cli.js';
|
|
7
|
+
export * from './graphql-config.js';
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PluginOption } from './types';
|
|
1
|
+
import { PluginOption } from './types.js';
|
|
2
2
|
export declare const plugins: Array<PluginOption>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import inquirer from 'inquirer';
|
|
2
|
-
import { Tags, Answers } from './types';
|
|
2
|
+
import { Tags, Answers } from './types.js';
|
|
3
3
|
export declare function getQuestions(possibleTargets: Record<Tags, boolean>): inquirer.QuestionCollection;
|
|
4
4
|
export declare function getApplicationTypeChoices(possibleTargets: Record<Tags, boolean>): {
|
|
5
5
|
name: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Tags } from './types';
|
|
1
|
+
import { Tags } from './types.js';
|
|
2
2
|
export declare function guessTargets(): Promise<Record<Tags, boolean>>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Types } from '@graphql-codegen/plugin-helpers';
|
|
2
|
-
import { CodegenContext } from '../config';
|
|
2
|
+
import { CodegenContext } from '../config.js';
|
|
3
3
|
export declare const createWatcher: (initalContext: CodegenContext, onNext: (result: Types.FileOutput[]) => Promise<Types.FileOutput[]>) => Promise<void>;
|
package/bin.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|