graphql-codegen-core
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
import { CodegenPlugin, DocumentFile, Types } from 'graphql-codegen-plugin-helpers'; | ||
import { CodegenPlugin, Types } from 'graphql-codegen-plugin-helpers'; | ||
import { DocumentNode } from 'graphql'; | ||
@@ -7,3 +7,3 @@ export declare function codegen(options: { | ||
schema: DocumentNode; | ||
documents: DocumentFile[]; | ||
documents: Types.DocumentFile[]; | ||
config: { | ||
@@ -10,0 +10,0 @@ [key: string]: any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const graphql_codegen_plugin_helpers_1 = require("graphql-codegen-plugin-helpers"); | ||
const graphql_1 = require("graphql"); | ||
@@ -21,3 +20,2 @@ const merge_schemas_1 = require("./merge-schemas"); | ||
const pluginConfig = plugin[name]; | ||
graphql_codegen_plugin_helpers_1.debugLog(`[CLI] Running plugin: ${name}`); | ||
const result = await execute_plugin_1.executePlugin({ | ||
@@ -33,3 +31,2 @@ name, | ||
}, pluginPackage); | ||
graphql_codegen_plugin_helpers_1.debugLog(`[CLI] Completed executing plugin: ${name}`); | ||
output += result; | ||
@@ -36,0 +33,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { Types, DocumentFile, CodegenPlugin } from 'graphql-codegen-plugin-helpers'; | ||
import { Types, CodegenPlugin } from 'graphql-codegen-plugin-helpers'; | ||
import { DocumentNode } from 'graphql'; | ||
@@ -7,3 +7,3 @@ export interface ExecutePluginOptions { | ||
schema: DocumentNode; | ||
documents: DocumentFile[]; | ||
documents: Types.DocumentFile[]; | ||
outputFilename: string; | ||
@@ -10,0 +10,0 @@ allPlugins: Types.ConfiguredPlugin[]; |
@@ -1,2 +0,2 @@ | ||
import { CodegenPlugin, DocumentFile, Types } from 'graphql-codegen-plugin-helpers'; | ||
import { CodegenPlugin, Types } from 'graphql-codegen-plugin-helpers'; | ||
import { DocumentNode } from 'graphql'; | ||
@@ -7,3 +7,3 @@ export declare function codegen(options: { | ||
schema: DocumentNode; | ||
documents: DocumentFile[]; | ||
documents: Types.DocumentFile[]; | ||
config: { | ||
@@ -10,0 +10,0 @@ [key: string]: any; |
@@ -1,2 +0,1 @@ | ||
import { debugLog } from 'graphql-codegen-plugin-helpers'; | ||
import { visit } from 'graphql'; | ||
@@ -19,3 +18,2 @@ import { mergeSchemas } from './merge-schemas'; | ||
const pluginConfig = plugin[name]; | ||
debugLog(`[CLI] Running plugin: ${name}`); | ||
const result = await executePlugin({ | ||
@@ -31,3 +29,2 @@ name, | ||
}, pluginPackage); | ||
debugLog(`[CLI] Completed executing plugin: ${name}`); | ||
output += result; | ||
@@ -34,0 +31,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { Types, DocumentFile, CodegenPlugin } from 'graphql-codegen-plugin-helpers'; | ||
import { Types, CodegenPlugin } from 'graphql-codegen-plugin-helpers'; | ||
import { DocumentNode } from 'graphql'; | ||
@@ -7,3 +7,3 @@ export interface ExecutePluginOptions { | ||
schema: DocumentNode; | ||
documents: DocumentFile[]; | ||
documents: Types.DocumentFile[]; | ||
outputFilename: string; | ||
@@ -10,0 +10,0 @@ allPlugins: Types.ConfiguredPlugin[]; |
{ | ||
"name": "graphql-codegen-core", | ||
"version": "0.19.0-alpha.fb3f63d6", | ||
"version": "0.19.0-alpha.fcb05664", | ||
"license": "MIT", | ||
@@ -14,3 +14,3 @@ "repository": { | ||
"build": "tsc -m esnext --outDir dist/esnext && tsc -m commonjs --outDir dist/commonjs", | ||
"test": "jest --no-cache --verbose --runInBand" | ||
"test": "jest --config ../../jest.config.js" | ||
}, | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
"dependencies": { | ||
"graphql-codegen-plugin-helpers": "0.19.0-alpha.fb3f63d6", | ||
"graphql-codegen-plugin-helpers": "0.19.0-alpha.fcb05664", | ||
"graphql-toolkit": "0.2.6", | ||
@@ -46,0 +46,0 @@ "tslib": "1.9.3" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
-100%25022
-2.73%357
-1.65%+ Added
- Removed
- Removed