Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Jun 5, 2020
1 parent 381415a commit 603a501
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/gatsby/src/bootstrap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Runner } from "./create-graphql-runner"
import { writeOutRedirects } from "../services/write-out-redirects"
import { postBootstrap } from "../services/post-bootstrap"

export default async function bootstrap(
export async function bootstrap(
context: IBuildContext
): Promise<{ bootstrapGraphQLFunction: Runner }> {
const currentContext: IBuildContext = {
Expand Down
6 changes: 3 additions & 3 deletions packages/gatsby/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = async function build(program: IBuildArgs): Promise<void> {
const buildSpan = buildActivity.span
buildSpan.setTag(`directory`, program.directory)

const { graphqlRunner: bootstrapGraphQLRunner } = await bootstrap({
const { bootstrapGraphQLFunction } = await bootstrap({
program,
parentSpan: buildSpan,
})
Expand All @@ -90,7 +90,7 @@ module.exports = async function build(program: IBuildArgs): Promise<void> {
})

await apiRunnerNode(`onPreBuild`, {
graphql: bootstrapGraphQLRunner,
graphql: bootstrapGraphQLFunction,
parentSpan: buildSpan,
})

Expand Down Expand Up @@ -255,7 +255,7 @@ module.exports = async function build(program: IBuildArgs): Promise<void> {
})
postBuildActivityTimer.start()
await apiRunnerNode(`onPostBuild`, {
graphql: bootstrapGraphQLRunner,
graphql: bootstrapGraphQLFunction,
parentSpan: buildSpan,
})
postBuildActivityTimer.end()
Expand Down
6 changes: 3 additions & 3 deletions packages/gatsby/src/commands/develop-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import graphiqlExplorer from "gatsby-graphiql-explorer"
import { formatError, GraphQLSchema } from "graphql"

import webpackConfig from "../utils/webpack.config"
import bootstrap from "../bootstrap"
import { bootstrap } from "../bootstrap"
import { store } from "../redux"
import { syncStaticDir } from "../utils/get-static-dir"
import { buildHTML } from "./build-html"
Expand Down Expand Up @@ -419,10 +419,10 @@ module.exports = async (program: IProgram): Promise<void> => {
}

// Start bootstrap process.
const { graphqlRunner } = await bootstrap(program)
const { bootstrapGraphQLFunction } = await bootstrap({ program })

// Start the createPages hot reloader.
bootstrapPageHotReloader(graphqlRunner)
bootstrapPageHotReloader(bootstrapGraphQLFunction)

// Start the schema hot reloader.
bootstrapSchemaHotReloader()
Expand Down

0 comments on commit 603a501

Please sign in to comment.