diff --git a/src/index.js b/src/index.js index 9ea2be9858..7fac793ca7 100644 --- a/src/index.js +++ b/src/index.js @@ -125,7 +125,7 @@ export { // Validate GraphQL schema. validateSchema, assertValidSchema, -} from './type'; +} from './type/index'; export type { GraphQLType, @@ -168,7 +168,7 @@ export type { GraphQLScalarSerializer, GraphQLScalarValueParser, GraphQLScalarLiteralParser, -} from './type'; +} from './type/index'; // Parse and operate on GraphQL language source files. export { @@ -203,7 +203,7 @@ export { isTypeDefinitionNode, isTypeSystemExtensionNode, isTypeExtensionNode, -} from './language'; +} from './language/index'; export type { ParseOptions, @@ -275,7 +275,7 @@ export type { UnionTypeExtensionNode, EnumTypeExtensionNode, InputObjectTypeExtensionNode, -} from './language'; +} from './language/index'; // Execute GraphQL queries. export { @@ -284,12 +284,12 @@ export { defaultTypeResolver, responsePathAsArray, getDirectiveValues, -} from './execution'; +} from './execution/index'; -export type { ExecutionArgs, ExecutionResult } from './execution'; +export type { ExecutionArgs, ExecutionResult } from './execution/index'; -export { subscribe, createSourceEventStream } from './subscription'; -export type { SubscriptionArgs } from './subscription'; +export { subscribe, createSourceEventStream } from './subscription/index'; +export type { SubscriptionArgs } from './subscription/index'; // Validate GraphQL documents. export { @@ -323,9 +323,9 @@ export { ValuesOfCorrectTypeRule, VariablesAreInputTypesRule, VariablesInAllowedPositionRule, -} from './validation'; +} from './validation/index'; -export type { ValidationRule } from './validation'; +export type { ValidationRule } from './validation/index'; // Create, format, and print GraphQL errors. export { @@ -334,9 +334,9 @@ export { locatedError, printError, formatError, -} from './error'; +} from './error/index'; -export type { GraphQLFormattedError } from './error'; +export type { GraphQLFormattedError } from './error/index'; // Utilities for operating on GraphQL type schema and parsed sources. export { @@ -406,7 +406,7 @@ export { findDangerousChanges, // Report all deprecated usage within a GraphQL document. findDeprecatedUsages, -} from './utilities'; +} from './utilities/index'; export type { IntrospectionOptions, @@ -434,4 +434,4 @@ export type { BuildSchemaOptions, BreakingChange, DangerousChange, -} from './utilities'; +} from './utilities/index';