@graphql-codegen/cli 2.8.0 → 2.9.0-alpha-78f7f741b.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/config.js CHANGED
@@ -195,6 +195,10 @@ function updateContextWithCliFlags(context, cliFlags) {
195
195
  // for some reason parsed value is `'false'` string so this ensure it always is a boolean.
196
196
  config.ignoreNoDocuments = cliFlags['ignore-no-documents'] === true;
197
197
  }
198
+ if (cliFlags['emit-legacy-common-js-imports'] !== undefined) {
199
+ // for some reason parsed value is `'false'` string so this ensure it always is a boolean.
200
+ config.emitLegacyCommonJSImports = cliFlags['emit-legacy-common-js-imports'] === true;
201
+ }
198
202
  if (cliFlags.project) {
199
203
  context.useProject(cliFlags.project);
200
204
  }
package/esm/config.js CHANGED
@@ -185,6 +185,10 @@ export function updateContextWithCliFlags(context, cliFlags) {
185
185
  // for some reason parsed value is `'false'` string so this ensure it always is a boolean.
186
186
  config.ignoreNoDocuments = cliFlags['ignore-no-documents'] === true;
187
187
  }
188
+ if (cliFlags['emit-legacy-common-js-imports'] !== undefined) {
189
+ // for some reason parsed value is `'false'` string so this ensure it always is a boolean.
190
+ config.emitLegacyCommonJSImports = cliFlags['emit-legacy-common-js-imports'] === true;
191
+ }
188
192
  if (cliFlags.project) {
189
193
  context.useProject(cliFlags.project);
190
194
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@graphql-codegen/cli",
3
- "version": "2.8.0",
3
+ "version": "2.9.0-alpha-78f7f741b.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
  },
7
7
  "dependencies": {
8
- "@graphql-codegen/core": "2.6.0",
9
- "@graphql-codegen/plugin-helpers": "^2.5.0",
8
+ "@graphql-codegen/core": "2.6.1-alpha-78f7f741b.0",
9
+ "@graphql-codegen/plugin-helpers": "^2.6.0-alpha-78f7f741b.0",
10
10
  "@graphql-tools/apollo-engine-loader": "^7.3.1",
11
11
  "@graphql-tools/code-file-loader": "^7.3.0",
12
12
  "@graphql-tools/git-loader": "^7.2.0",
@@ -11,6 +11,7 @@ export declare type YamlCliFlags = {
11
11
  errorsOnly: boolean;
12
12
  profile: boolean;
13
13
  ignoreNoDocuments?: boolean;
14
+ emitLegacyCommonJSImports?: boolean;
14
15
  };
15
16
  export declare function generateSearchPlaces(moduleName: string): string[];
16
17
  export interface LoadCodegenConfigOptions {