Skip to content

Commit

Permalink
Remove '.' imports that break rollup (ardatan#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaberudy authored and btakita committed May 22, 2019
1 parent 2e78f21 commit a078ebe
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
5 changes: 3 additions & 2 deletions src/generate/addResolveFunctionsToSchema.ts
@@ -1,4 +1,4 @@
import { SchemaError } from '.';
import SchemaError from './SchemaError';

import {
GraphQLField,
Expand All @@ -17,7 +17,8 @@ import {
IAddResolveFunctionsToSchemaOptions,
} from '../Interfaces';
import { applySchemaTransforms } from '../transforms/transforms';
import { checkForResolveTypeResolver, extendResolversFromInterfaces } from '.';
import checkForResolveTypeResolver from './checkForResolveTypeResolver';
import extendResolversFromInterfaces from './extendResolversFromInterfaces';
import ConvertEnumValues from '../transforms/ConvertEnumValues';

function addResolveFunctionsToSchema(
Expand Down
3 changes: 2 additions & 1 deletion src/generate/assertResolveFunctionsPresent.ts
Expand Up @@ -6,7 +6,8 @@ import {
} from 'graphql';
import { IResolverValidationOptions } from '../Interfaces';

import { forEachField, SchemaError } from '.';
import SchemaError from './SchemaError';
import forEachField from './forEachField';

function assertResolveFunctionsPresent(
schema: GraphQLSchema,
Expand Down
2 changes: 1 addition & 1 deletion src/generate/attachConnectorsToContext.ts
Expand Up @@ -4,7 +4,7 @@ import { deprecated } from 'deprecated-decorator';

import { IConnectors, IConnector, IConnectorCls } from '../Interfaces';

import { addSchemaLevelResolveFunction } from '.';
import addSchemaLevelResolveFunction from './addSchemaLevelResolveFunction';

// takes a GraphQL-JS schema and an object of connectors, then attaches
// the connectors to the context by wrapping each query or mutation resolve
Expand Down
8 changes: 3 additions & 5 deletions src/generate/buildSchemaFromTypeDefinitions.ts
Expand Up @@ -7,11 +7,9 @@ import {
} from 'graphql';
import { ITypeDefinitions, GraphQLParseOptions } from '../Interfaces';

import {
extractExtensionDefinitions,
concatenateTypeDefs,
SchemaError,
} from '.';
import SchemaError from './SchemaError';
import extractExtensionDefinitions from './extractExtensionDefinitions';
import concatenateTypeDefs from './concatenateTypeDefs';

function buildSchemaFromTypeDefinitions(
typeDefinitions: ITypeDefinitions,
Expand Down
2 changes: 1 addition & 1 deletion src/generate/checkForResolveTypeResolver.ts
@@ -1,6 +1,6 @@
import { GraphQLInterfaceType, GraphQLUnionType, GraphQLSchema } from 'graphql';

import { SchemaError } from '.';
import SchemaError from './SchemaError';

// If we have any union or interface types throw if no there is no resolveType or isTypeOf resolvers
function checkForResolveTypeResolver(
Expand Down
2 changes: 1 addition & 1 deletion src/generate/concatenateTypeDefs.ts
@@ -1,7 +1,7 @@
import { print, DocumentNode } from 'graphql';
import { ITypedef } from '../Interfaces';

import { SchemaError } from '.';
import SchemaError from './SchemaError';

function concatenateTypeDefs(
typeDefinitionsAry: ITypedef[],
Expand Down

0 comments on commit a078ebe

Please sign in to comment.