@graphql-codegen/cli 7.1.0 → 7.1.1-alpha-20260530044942-e38eb33f551d7fedb5f82bfafc4597e13b9dabee
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/config.js +2 -1
- package/cjs/version.js +4 -0
- package/esm/config.js +2 -1
- package/esm/version.js +1 -0
- package/package.json +3 -3
- package/typings/version.d.cts +1 -0
- package/typings/version.d.ts +1 -0
package/cjs/config.js
CHANGED
|
@@ -23,6 +23,7 @@ const yargs_1 = tslib_1.__importDefault(require("yargs"));
|
|
|
23
23
|
const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
|
|
24
24
|
const graphql_config_js_1 = require("./graphql-config.js");
|
|
25
25
|
const load_js_1 = require("./load.js");
|
|
26
|
+
const version_js_1 = require("./version.js");
|
|
26
27
|
const { lstat } = fs_1.promises;
|
|
27
28
|
function generateSearchPlaces(moduleName) {
|
|
28
29
|
const extensions = ['json', 'yaml', 'yml', 'js', 'ts', 'config.js'];
|
|
@@ -192,7 +193,7 @@ function buildOptions() {
|
|
|
192
193
|
};
|
|
193
194
|
}
|
|
194
195
|
function parseArgv(argv = process.argv) {
|
|
195
|
-
return (0, yargs_1.default)(argv).options(buildOptions()).parse(argv);
|
|
196
|
+
return (0, yargs_1.default)(argv).version(version_js_1.version).options(buildOptions()).parse(argv);
|
|
196
197
|
}
|
|
197
198
|
async function createContext(cliFlags = parseArgv(process.argv)) {
|
|
198
199
|
if (cliFlags.require && cliFlags.require.length > 0) {
|
package/cjs/version.js
ADDED
package/esm/config.js
CHANGED
|
@@ -11,6 +11,7 @@ import yargs from 'yargs';
|
|
|
11
11
|
import { createNoopProfiler, createProfiler, getCachedDocumentNodeFromSchema, } from '@graphql-codegen/plugin-helpers';
|
|
12
12
|
import { findAndLoadGraphQLConfig } from './graphql-config.js';
|
|
13
13
|
import { defaultDocumentsLoadOptions, defaultSchemaLoadOptions, loadDocuments, loadSchema, } from './load.js';
|
|
14
|
+
import { version } from './version.js';
|
|
14
15
|
const { lstat } = promises;
|
|
15
16
|
export function generateSearchPlaces(moduleName) {
|
|
16
17
|
const extensions = ['json', 'yaml', 'yml', 'js', 'ts', 'config.js'];
|
|
@@ -180,7 +181,7 @@ export function buildOptions() {
|
|
|
180
181
|
};
|
|
181
182
|
}
|
|
182
183
|
export function parseArgv(argv = process.argv) {
|
|
183
|
-
return yargs(argv).options(buildOptions()).parse(argv);
|
|
184
|
+
return yargs(argv).version(version).options(buildOptions()).parse(argv);
|
|
184
185
|
}
|
|
185
186
|
export async function createContext(cliFlags = parseArgv(process.argv)) {
|
|
186
187
|
if (cliFlags.require && cliFlags.require.length > 0) {
|
package/esm/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const version = '__VERSION__';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.1-alpha-20260530044942-e38eb33f551d7fedb5f82bfafc4597e13b9dabee",
|
|
4
4
|
"peerDependenciesMeta": {
|
|
5
5
|
"@parcel/watcher": {
|
|
6
6
|
"optional": true
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"tslib": "^2.4.0",
|
|
44
44
|
"yaml": "^2.3.1",
|
|
45
45
|
"yargs": "^18.0.0",
|
|
46
|
-
"@graphql-codegen/
|
|
46
|
+
"@graphql-codegen/client-preset": "^6.0.1",
|
|
47
47
|
"@graphql-codegen/core": "^6.1.0",
|
|
48
|
-
"@graphql-codegen/
|
|
48
|
+
"@graphql-codegen/plugin-helpers": "^7.0.1"
|
|
49
49
|
},
|
|
50
50
|
"repository": {
|
|
51
51
|
"type": "git",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "__VERSION__";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "__VERSION__";
|