Skip to content

Commit

Permalink
chore: fix broken build #2
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Apr 13, 2024
1 parent e44bad6 commit 7329275
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/unlighthouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@ import objectHash from 'object-hash'
import { createCommonJS, resolvePath } from 'mlly'
import { $fetch } from 'ofetch'
import chalk from 'chalk'
import type { TaskFunction } from 'puppeteer-cluster/dist/Cluster'
import { version } from '../package.json'
import { WS, createApi, createBroadcastingEvents, createMockRouter } from './router'
import { createUnlighthouseWorker, inspectHtmlTask, runLighthouseTask } from './puppeteer'
import type {
Provider,
PuppeteerTaskArgs,
PuppeteerTaskReturn,
ResolvedUserConfig,
RuntimeSettings,
UnlighthouseContext,
UnlighthouseHooks,
UnlighthouseTask,
UserConfig,
} from './types'
import { generateClient } from './build'
Expand Down Expand Up @@ -134,7 +138,7 @@ export async function createUnlighthouse(userConfig: UserConfig, provider?: Prov
} as unknown as UnlighthouseContext
engineContext.set(ctx, true)

const tasks = {
const tasks: Record<UnlighthouseTask, TaskFunction<PuppeteerTaskArgs, PuppeteerTaskReturn>> = {
inspectHtmlTask,
runLighthouseTask,
}
Expand Down

0 comments on commit 7329275

Please sign in to comment.