@graphql-codegen/introspection 2.2.1 → 2.2.2-alpha-20221207031847-2e87bf712

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-codegen/introspection",
3
- "version": "2.2.1",
3
+ "version": "2.2.2-alpha-20221207031847-2e87bf712",
4
4
  "description": "GraphQL Code Generator plugin for generating an introspection JSON file for a GraphQLSchema",
5
5
  "peerDependencies": {
6
6
  "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"
7
7
  },
8
8
  "dependencies": {
9
- "@graphql-codegen/plugin-helpers": "^2.6.2",
10
- "@graphql-codegen/visitor-plugin-common": "^2.12.1",
9
+ "@graphql-codegen/plugin-helpers": "3.0.0-alpha-20221207031847-2e87bf712",
10
+ "@graphql-codegen/visitor-plugin-common": "2.13.4-alpha-20221207031847-2e87bf712",
11
11
  "tslib": "~2.4.0"
12
12
  },
13
13
  "repository": {
@@ -8,13 +8,22 @@ export interface IntrospectionPluginConfig {
8
8
  * @default false
9
9
  *
10
10
  * @exampleMarkdown
11
- * ```yaml {6}
12
- * generates:
13
- * introspection.json:
14
- * plugins:
15
- * - introspection
16
- * config:
17
- * minify: true
11
+ * ```tsx {10} filename="codegen.ts"
12
+ * import type { CodegenConfig } from '@graphql-codegen/cli';
13
+ *
14
+ * const config: CodegenConfig = {
15
+ * schema: 'https://localhost:4000/graphql',
16
+ * documents: ['src/**\/*.tsx'],
17
+ * generates: {
18
+ * 'introspection.json': {
19
+ * plugins: ['introspection'],
20
+ * config: {
21
+ * minify: true
22
+ * },
23
+ * },
24
+ * },
25
+ * };
26
+ * export default config;
18
27
  * ```
19
28
  */
20
29
  minify?: boolean;
@@ -8,13 +8,22 @@ export interface IntrospectionPluginConfig {
8
8
  * @default false
9
9
  *
10
10
  * @exampleMarkdown
11
- * ```yaml {6}
12
- * generates:
13
- * introspection.json:
14
- * plugins:
15
- * - introspection
16
- * config:
17
- * minify: true
11
+ * ```tsx {10} filename="codegen.ts"
12
+ * import type { CodegenConfig } from '@graphql-codegen/cli';
13
+ *
14
+ * const config: CodegenConfig = {
15
+ * schema: 'https://localhost:4000/graphql',
16
+ * documents: ['src/**\/*.tsx'],
17
+ * generates: {
18
+ * 'introspection.json': {
19
+ * plugins: ['introspection'],
20
+ * config: {
21
+ * minify: true
22
+ * },
23
+ * },
24
+ * },
25
+ * };
26
+ * export default config;
18
27
  * ```
19
28
  */
20
29
  minify?: boolean;