From f087d53b71e5fb59214ad64ea6e268a940ddd67f Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Fri, 19 Jun 2020 12:57:08 +0100 Subject: [PATCH] Update packages/gatsby/src/services/initialize.ts Co-authored-by: Peter van der Zee <209817+pvdz@users.noreply.github.com> --- packages/gatsby/src/services/initialize.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/gatsby/src/services/initialize.ts b/packages/gatsby/src/services/initialize.ts index cd9e5a8f22c53..547bf2d5499a0 100644 --- a/packages/gatsby/src/services/initialize.ts +++ b/packages/gatsby/src/services/initialize.ts @@ -37,13 +37,11 @@ process.on(`unhandledRejection`, (reason: unknown) => { // require(`../bootstrap/log-line-function`) export async function initialize( - context: IBuildContext + { program: args, parentSpan }: IBuildContext ): Promise<{ store: Store workerPool: JestWorker }> { - const args = context.program - const { parentSpan } = context if (!args) { reporter.panic(`Missing program args`) }