diff --git a/analyzer/api/src/factory.ts b/analyzer/api/src/factory.ts index 6a914d98736..0a95da596a5 100644 --- a/analyzer/api/src/factory.ts +++ b/analyzer/api/src/factory.ts @@ -1,5 +1,5 @@ import { createFileSystemReader } from "@previewjs/vfs"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import type { Analyzer, AnalyzerFactory } from "./api.js"; const { pino: createLogger } = pino; diff --git a/analyzer/react/src/analyze.spec.ts b/analyzer/react/src/analyze.spec.ts index e59a905df7b..e6b8ec685da 100644 --- a/analyzer/react/src/analyze.spec.ts +++ b/analyzer/react/src/analyze.spec.ts @@ -21,7 +21,7 @@ import { createStackedReader, } from "@previewjs/vfs"; import path from "path"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import url from "url"; import { afterEach, beforeEach, describe, expect, test } from "vitest"; diff --git a/analyzer/react/src/crawl-file.spec.ts b/analyzer/react/src/crawl-file.spec.ts index facad0e50b4..4a496864347 100644 --- a/analyzer/react/src/crawl-file.spec.ts +++ b/analyzer/react/src/crawl-file.spec.ts @@ -8,7 +8,7 @@ import { createStackedReader, } from "@previewjs/vfs"; import path from "path"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import url from "url"; import { afterEach, beforeEach, describe, expect, it } from "vitest"; diff --git a/core/src/index.ts b/core/src/index.ts index cd4809ff27c..a1ff9fc4991 100644 --- a/core/src/index.ts +++ b/core/src/index.ts @@ -12,7 +12,7 @@ import fs from "fs-extra"; import { createRequire } from "module"; import path from "path"; import type { Logger } from "pino"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import { crawlFiles } from "./crawl-files.js"; import { getFreePort } from "./get-free-port.js"; diff --git a/framework-plugins/preact/src/analyze.spec.ts b/framework-plugins/preact/src/analyze.spec.ts index fe8e891a82a..e2a9c261235 100644 --- a/framework-plugins/preact/src/analyze.spec.ts +++ b/framework-plugins/preact/src/analyze.spec.ts @@ -17,7 +17,7 @@ import { createStackedReader, } from "@previewjs/vfs"; import path from "path"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import url from "url"; import { afterEach, beforeEach, describe, expect, test } from "vitest"; diff --git a/framework-plugins/preact/src/crawl-file.spec.ts b/framework-plugins/preact/src/crawl-file.spec.ts index 3d0a4fbd7ed..1d7d7b04797 100644 --- a/framework-plugins/preact/src/crawl-file.spec.ts +++ b/framework-plugins/preact/src/crawl-file.spec.ts @@ -9,7 +9,7 @@ import { createStackedReader, } from "@previewjs/vfs"; import path from "path"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import url from "url"; import { afterEach, beforeEach, describe, expect, it } from "vitest"; diff --git a/framework-plugins/solid/src/analyze.spec.ts b/framework-plugins/solid/src/analyze.spec.ts index 009712e03dd..5b786173f71 100644 --- a/framework-plugins/solid/src/analyze.spec.ts +++ b/framework-plugins/solid/src/analyze.spec.ts @@ -16,7 +16,7 @@ import { createStackedReader, } from "@previewjs/vfs"; import path from "path"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import { afterEach, beforeEach, describe, expect, test } from "vitest"; import solidFrameworkPlugin from "./index.js"; diff --git a/framework-plugins/solid/src/crawl-file.spec.ts b/framework-plugins/solid/src/crawl-file.spec.ts index 0ba9889b2b2..f6d40c6d957 100644 --- a/framework-plugins/solid/src/crawl-file.spec.ts +++ b/framework-plugins/solid/src/crawl-file.spec.ts @@ -9,7 +9,7 @@ import { createStackedReader, } from "@previewjs/vfs"; import path from "path"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import { afterEach, beforeEach, describe, expect, it } from "vitest"; import { crawlFile } from "./crawl-file.js"; diff --git a/framework-plugins/svelte/src/analyze.spec.ts b/framework-plugins/svelte/src/analyze.spec.ts index 9bbb3bbe4b1..c04150e8371 100644 --- a/framework-plugins/svelte/src/analyze.spec.ts +++ b/framework-plugins/svelte/src/analyze.spec.ts @@ -13,7 +13,7 @@ import { createStackedReader, } from "@previewjs/vfs"; import path from "path"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import { afterEach, beforeEach, describe, expect, test } from "vitest"; import svelteFrameworkPlugin from "./index.js"; diff --git a/framework-plugins/vue2/src/analyze.spec.ts b/framework-plugins/vue2/src/analyze.spec.ts index 983449dd7d8..435d9b4009f 100644 --- a/framework-plugins/vue2/src/analyze.spec.ts +++ b/framework-plugins/vue2/src/analyze.spec.ts @@ -16,7 +16,7 @@ import { createStackedReader, } from "@previewjs/vfs"; import path from "path"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import { afterEach, beforeEach, describe, expect, test } from "vitest"; import vue2FrameworkPlugin from "./index.js"; diff --git a/framework-plugins/vue2/src/crawl-file.spec.ts b/framework-plugins/vue2/src/crawl-file.spec.ts index ecd13ec682f..94538706171 100644 --- a/framework-plugins/vue2/src/crawl-file.spec.ts +++ b/framework-plugins/vue2/src/crawl-file.spec.ts @@ -9,7 +9,7 @@ import { createStackedReader, } from "@previewjs/vfs"; import path from "path"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import { afterEach, beforeEach, describe, expect, it } from "vitest"; import { crawlFile } from "./crawl-file.js"; diff --git a/framework-plugins/vue2/src/vue-reader.spec.ts b/framework-plugins/vue2/src/vue-reader.spec.ts index e847f70a703..175f18d10a7 100644 --- a/framework-plugins/vue2/src/vue-reader.spec.ts +++ b/framework-plugins/vue2/src/vue-reader.spec.ts @@ -1,7 +1,7 @@ import type { Reader, Writer } from "@previewjs/vfs"; import { createMemoryReader } from "@previewjs/vfs"; import path from "path"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import { beforeEach, describe, expect, it } from "vitest"; import { createVueTypeScriptReader } from "./vue-reader.js"; diff --git a/framework-plugins/vue3/src/analyze.spec.ts b/framework-plugins/vue3/src/analyze.spec.ts index 0e86df7394e..64663f560e1 100644 --- a/framework-plugins/vue3/src/analyze.spec.ts +++ b/framework-plugins/vue3/src/analyze.spec.ts @@ -13,7 +13,7 @@ import { createStackedReader, } from "@previewjs/vfs"; import path from "path"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import { afterEach, beforeEach, describe, expect, test } from "vitest"; import vue3FrameworkPlugin from "./index.js"; diff --git a/framework-plugins/vue3/src/crawl-file.spec.ts b/framework-plugins/vue3/src/crawl-file.spec.ts index f5a566af302..5f3d906f68a 100644 --- a/framework-plugins/vue3/src/crawl-file.spec.ts +++ b/framework-plugins/vue3/src/crawl-file.spec.ts @@ -9,7 +9,7 @@ import { createStackedReader, } from "@previewjs/vfs"; import path from "path"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import { afterEach, beforeEach, describe, expect, it } from "vitest"; import { crawlFile } from "./crawl-file.js"; diff --git a/loader/src/runner.ts b/loader/src/runner.ts index 490115c7a8d..91374a1a77a 100644 --- a/loader/src/runner.ts +++ b/loader/src/runner.ts @@ -5,7 +5,7 @@ import fs from "fs-extra"; import { fork } from "node:child_process"; import path from "path"; import type { Logger } from "pino"; -import * as pino from "pino"; +import pino from "pino"; import PinoPretty from "pino-pretty"; import type { LogLevel } from "./index.js"; import { installDependenciesIfRequired, loadModules } from "./modules.js"; diff --git a/loader/src/worker.ts b/loader/src/worker.ts index 6daa48e568f..4a04a1a4248 100644 --- a/loader/src/worker.ts +++ b/loader/src/worker.ts @@ -1,5 +1,5 @@ import { assertNever } from "assert-never"; -import * as pino from "pino"; +import pino from "pino"; import { loadModules } from "./modules.js"; import type { FromWorkerMessage,