From a833777f6c7754fdc8ca18aa86ab121155f6b440 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Sat, 21 Jan 2023 15:58:54 +0100 Subject: [PATCH] build: fix unresolved build --- packages/vitest/src/node/reporters/junit.ts | 6 ++++-- packages/vitest/src/node/reporters/tap-flat.ts | 2 +- packages/vitest/src/node/reporters/tap.ts | 4 +++- packages/web-worker/rollup.config.js | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/vitest/src/node/reporters/junit.ts b/packages/vitest/src/node/reporters/junit.ts index 7fccb602281b..4a61d1adf731 100644 --- a/packages/vitest/src/node/reporters/junit.ts +++ b/packages/vitest/src/node/reporters/junit.ts @@ -2,8 +2,10 @@ import { existsSync, promises as fs } from 'node:fs' import { hostname } from 'node:os' import { dirname, relative, resolve } from 'pathe' +import type { Task } from '@vitest/runner' +import type { ErrorWithDiff } from '@vitest/runner/utils' import type { Vitest } from '../../node' -import type { ErrorWithDiff, Reporter, Task } from '../../types' +import type { Reporter } from '../../types/reporter' import { parseStacktrace } from '../../utils/source-map' import { F_POINTER } from '../../utils/figures' import { getOutputFile } from '../../utils/config-helpers' @@ -99,7 +101,7 @@ export class JUnitReporter implements Reporter { } async writeElement(name: string, attrs: Record, children: () => Promise) { - const pairs = [] + const pairs: string[] = [] for (const key in attrs) { const attr = attrs[key] if (attr === undefined) diff --git a/packages/vitest/src/node/reporters/tap-flat.ts b/packages/vitest/src/node/reporters/tap-flat.ts index 86ac59bbcaf3..125c41ebcff3 100644 --- a/packages/vitest/src/node/reporters/tap-flat.ts +++ b/packages/vitest/src/node/reporters/tap-flat.ts @@ -1,5 +1,5 @@ +import type { Task } from '@vitest/runner' import type { Vitest } from '../../node' -import type { Task } from '../../types' import { TapReporter } from './tap' function flattenTasks(task: Task, baseName = ''): Task[] { diff --git a/packages/vitest/src/node/reporters/tap.ts b/packages/vitest/src/node/reporters/tap.ts index 8bf12cdd0ac9..d3e5540a167c 100644 --- a/packages/vitest/src/node/reporters/tap.ts +++ b/packages/vitest/src/node/reporters/tap.ts @@ -1,5 +1,7 @@ +import type { Task } from '@vitest/runner' +import type { ParsedStack } from '@vitest/runner/utils' import type { Vitest } from '../../node' -import type { ParsedStack, Reporter, Task } from '../../types' +import type { Reporter } from '../../types/reporter' import { parseStacktrace } from '../../utils/source-map' import { IndentedLogger } from './renderers/indented-logger' diff --git a/packages/web-worker/rollup.config.js b/packages/web-worker/rollup.config.js index 92aee2ef6e24..8bd2ad296f88 100644 --- a/packages/web-worker/rollup.config.js +++ b/packages/web-worker/rollup.config.js @@ -44,7 +44,7 @@ export default () => [ plugins, }, { - input: entries, + input: 'src/pure.ts', output: { dir: process.cwd(), entryFileNames: '[name].d.ts',