@graphql-codegen/cli 2.7.0-alpha-6aa2d3c43.0 → 2.7.0-alpha-05066c85f.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/bin.js +2 -8
- package/index.js +2 -8
- package/index.mjs +2 -8
- package/package.json +3 -10
- package/bin.mjs +0 -1869
- package/utils/is-browser.d.ts +0 -3
package/bin.js
CHANGED
|
@@ -692,7 +692,7 @@ function buildOptions() {
|
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
694
|
function parseArgv(argv = process.argv) {
|
|
695
|
-
return yargs
|
|
695
|
+
return yargs.options(buildOptions()).parse(argv);
|
|
696
696
|
}
|
|
697
697
|
async function createContext(cliFlags = parseArgv(process.argv)) {
|
|
698
698
|
if (cliFlags.require && cliFlags.require.length > 0) {
|
|
@@ -830,9 +830,6 @@ function addHashToDocumentFiles(documentFilesPromise) {
|
|
|
830
830
|
}));
|
|
831
831
|
}
|
|
832
832
|
|
|
833
|
-
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
834
|
-
const isNode = typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
|
|
835
|
-
|
|
836
833
|
function isListrError(err) {
|
|
837
834
|
return err.name === 'ListrError' && Array.isArray(err.errors) && err.errors.length > 0;
|
|
838
835
|
}
|
|
@@ -849,12 +846,9 @@ function cliError(err, exitOnError = true) {
|
|
|
849
846
|
}
|
|
850
847
|
// eslint-disable-next-line no-console
|
|
851
848
|
console.error(msg);
|
|
852
|
-
if (exitOnError
|
|
849
|
+
if (exitOnError) {
|
|
853
850
|
process.exit(1);
|
|
854
851
|
}
|
|
855
|
-
else if (exitOnError && isBrowser) {
|
|
856
|
-
throw err;
|
|
857
|
-
}
|
|
858
852
|
}
|
|
859
853
|
|
|
860
854
|
const makeDefaultLoader = (from) => {
|
package/index.js
CHANGED
|
@@ -612,7 +612,7 @@ function buildOptions() {
|
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
614
|
function parseArgv(argv = process.argv) {
|
|
615
|
-
return yargs
|
|
615
|
+
return yargs.options(buildOptions()).parse(argv);
|
|
616
616
|
}
|
|
617
617
|
async function createContext(cliFlags = parseArgv(process.argv)) {
|
|
618
618
|
if (cliFlags.require && cliFlags.require.length > 0) {
|
|
@@ -750,9 +750,6 @@ function addHashToDocumentFiles(documentFilesPromise) {
|
|
|
750
750
|
}));
|
|
751
751
|
}
|
|
752
752
|
|
|
753
|
-
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
754
|
-
const isNode = typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
|
|
755
|
-
|
|
756
753
|
function isListrError(err) {
|
|
757
754
|
return err.name === 'ListrError' && Array.isArray(err.errors) && err.errors.length > 0;
|
|
758
755
|
}
|
|
@@ -769,12 +766,9 @@ function cliError(err, exitOnError = true) {
|
|
|
769
766
|
}
|
|
770
767
|
// eslint-disable-next-line no-console
|
|
771
768
|
console.error(msg);
|
|
772
|
-
if (exitOnError
|
|
769
|
+
if (exitOnError) {
|
|
773
770
|
process.exit(1);
|
|
774
771
|
}
|
|
775
|
-
else if (exitOnError && isBrowser) {
|
|
776
|
-
throw err;
|
|
777
|
-
}
|
|
778
772
|
}
|
|
779
773
|
|
|
780
774
|
const makeDefaultLoader = (from) => {
|
package/index.mjs
CHANGED
|
@@ -585,7 +585,7 @@ function buildOptions() {
|
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
587
|
function parseArgv(argv = process.argv) {
|
|
588
|
-
return yargs
|
|
588
|
+
return yargs.options(buildOptions()).parse(argv);
|
|
589
589
|
}
|
|
590
590
|
async function createContext(cliFlags = parseArgv(process.argv)) {
|
|
591
591
|
if (cliFlags.require && cliFlags.require.length > 0) {
|
|
@@ -723,9 +723,6 @@ function addHashToDocumentFiles(documentFilesPromise) {
|
|
|
723
723
|
}));
|
|
724
724
|
}
|
|
725
725
|
|
|
726
|
-
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
727
|
-
const isNode = typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
|
|
728
|
-
|
|
729
726
|
function isListrError(err) {
|
|
730
727
|
return err.name === 'ListrError' && Array.isArray(err.errors) && err.errors.length > 0;
|
|
731
728
|
}
|
|
@@ -742,12 +739,9 @@ function cliError(err, exitOnError = true) {
|
|
|
742
739
|
}
|
|
743
740
|
// eslint-disable-next-line no-console
|
|
744
741
|
console.error(msg);
|
|
745
|
-
if (exitOnError
|
|
742
|
+
if (exitOnError) {
|
|
746
743
|
process.exit(1);
|
|
747
744
|
}
|
|
748
|
-
else if (exitOnError && isBrowser) {
|
|
749
|
-
throw err;
|
|
750
|
-
}
|
|
751
745
|
}
|
|
752
746
|
|
|
753
747
|
const makeDefaultLoader = (from) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "2.7.0-alpha-
|
|
3
|
+
"version": "2.7.0-alpha-05066c85f.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,7 +8,7 @@
|
|
|
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.0.5",
|
|
11
|
-
"@graphql-tools/code-file-loader": "^7.
|
|
11
|
+
"@graphql-tools/code-file-loader": "^7.0.6",
|
|
12
12
|
"@graphql-tools/git-loader": "^7.0.5",
|
|
13
13
|
"@graphql-tools/github-loader": "^7.0.5",
|
|
14
14
|
"@graphql-tools/graphql-file-loader": "^7.0.5",
|
|
@@ -24,10 +24,7 @@
|
|
|
24
24
|
"common-tags": "^1.8.0",
|
|
25
25
|
"cosmiconfig": "^7.0.0",
|
|
26
26
|
"debounce": "^1.2.0",
|
|
27
|
-
"dependency-graph": "^0.11.0",
|
|
28
27
|
"detect-indent": "^6.0.0",
|
|
29
|
-
"glob": "^8.0.0",
|
|
30
|
-
"globby": "^11.0.4",
|
|
31
28
|
"graphql-config": "^4.1.0",
|
|
32
29
|
"inquirer": "^8.0.0",
|
|
33
30
|
"is-glob": "^4.0.1",
|
|
@@ -36,12 +33,9 @@
|
|
|
36
33
|
"listr": "^0.14.3",
|
|
37
34
|
"listr-update-renderer": "^0.5.0",
|
|
38
35
|
"log-symbols": "^4.0.0",
|
|
39
|
-
"minimatch": "^5.0.0",
|
|
40
36
|
"mkdirp": "^1.0.4",
|
|
41
37
|
"string-env-interpolation": "^1.0.1",
|
|
42
38
|
"ts-log": "^2.2.3",
|
|
43
|
-
"tslib": "~2.4.0",
|
|
44
|
-
"valid-url": "^1.0.9",
|
|
45
39
|
"wrap-ansi": "^7.0.0",
|
|
46
40
|
"yaml": "^1.10.0",
|
|
47
41
|
"yargs": "^17.0.0"
|
|
@@ -91,7 +85,6 @@
|
|
|
91
85
|
"bin": {
|
|
92
86
|
"gql-gen": "bin.js",
|
|
93
87
|
"graphql-codegen": "bin.js",
|
|
94
|
-
"graphql-code-generator": "bin.js"
|
|
95
|
-
"graphql-codegen-esm": "bin.mjs"
|
|
88
|
+
"graphql-code-generator": "bin.js"
|
|
96
89
|
}
|
|
97
90
|
}
|