From 2863135416a3683461e8a21c02ef020f3e373ba3 Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Tue, 26 Feb 2019 17:27:55 -0500 Subject: [PATCH] Simplify building the graphql-anywhere/lib/async entry point. Should fix https://github.com/apollographql/apollo-link-rest/issues/194. --- packages/graphql-anywhere/rollup.config.js | 5 ----- packages/graphql-anywhere/src/__tests__/index.ts | 2 +- packages/graphql-anywhere/src/{graphql-async.ts => async.ts} | 0 3 files changed, 1 insertion(+), 6 deletions(-) rename packages/graphql-anywhere/src/{graphql-async.ts => async.ts} (100%) diff --git a/packages/graphql-anywhere/rollup.config.js b/packages/graphql-anywhere/rollup.config.js index 3f46b907150..c142191014e 100644 --- a/packages/graphql-anywhere/rollup.config.js +++ b/packages/graphql-anywhere/rollup.config.js @@ -2,9 +2,4 @@ import { rollup } from '../../config/rollup.config'; export default [ ...rollup({ name: 'graphql-anywhere' }), - ...rollup({ - name: 'graphql-anywhere-async', - input: 'src/graphql-async.ts', - outputPrefix: 'async', - }), ]; diff --git a/packages/graphql-anywhere/src/__tests__/index.ts b/packages/graphql-anywhere/src/__tests__/index.ts index fb556d1492f..96cbf4ba924 100644 --- a/packages/graphql-anywhere/src/__tests__/index.ts +++ b/packages/graphql-anywhere/src/__tests__/index.ts @@ -844,5 +844,5 @@ describe('basic operations done sync', execute(require('../').default, x => x)); describe( 'basic operations done async', - execute(require('../graphql-async').graphql, x => Promise.resolve(x)), + execute(require('../async').graphql, x => Promise.resolve(x)), ); diff --git a/packages/graphql-anywhere/src/graphql-async.ts b/packages/graphql-anywhere/src/async.ts similarity index 100% rename from packages/graphql-anywhere/src/graphql-async.ts rename to packages/graphql-anywhere/src/async.ts