diff --git a/packages/core/src/compiler/Compiler.spec.ts b/packages/core/src/compiler/Compiler.spec.ts index e59023f5..5c80f59a 100644 --- a/packages/core/src/compiler/Compiler.spec.ts +++ b/packages/core/src/compiler/Compiler.spec.ts @@ -7,7 +7,7 @@ */ import { basename } from "path"; import type { LanguageService, Program } from "typescript"; -import * as ts from "typescript"; +import ts from "typescript"; import { ReporterMock, compileOptions, compileSystem } from "../../test"; import { CompileFragment, Compiler } from "./Compiler"; import { CompilerOptions } from "./CompilerOptions"; diff --git a/packages/core/src/environment/compile-service.ts b/packages/core/src/environment/compile-service.ts index 3b54b4c8..e40bb7de 100644 --- a/packages/core/src/environment/compile-service.ts +++ b/packages/core/src/environment/compile-service.ts @@ -6,7 +6,7 @@ */ import { Reporter } from "@quatico/websmith-api"; import merge from "lodash/merge"; -import * as ts from "typescript"; +import ts from "typescript"; import { DefaultReporter } from "../compiler"; /** diff --git a/packages/core/test/compile-options.ts b/packages/core/test/compile-options.ts index ae7af2e4..21058492 100644 --- a/packages/core/test/compile-options.ts +++ b/packages/core/test/compile-options.ts @@ -4,7 +4,7 @@ * Licensed under the MIT License. See LICENSE in the project root for license information. * --------------------------------------------------------------------------------------------- */ -import * as ts from "typescript"; +import ts from "typescript"; import { AddonRegistry, type CompilerOptions } from "../src/compiler"; import { ReporterMock } from "./ReporterMock"; diff --git a/packages/testing/src/compile-options.ts b/packages/testing/src/compile-options.ts index c5f22286..491fa038 100644 --- a/packages/testing/src/compile-options.ts +++ b/packages/testing/src/compile-options.ts @@ -5,12 +5,12 @@ * --------------------------------------------------------------------------------------------- */ import { AddonRegistry, type CompilerOptions } from "@quatico/websmith-core"; -import * as ts from "typescript"; +import ts from "typescript"; import { ReporterMock } from "./ReporterMock"; export const compileOptions = ( system: ts.System, - overrides?: Partial | { tsconfig?: Partial; project?: Partial; targets?: string[] } + overrides?: Partial & { tsconfig?: Partial; project?: Partial; targets?: string[] } ): CompilerOptions => { const reporter = new ReporterMock(system); return {