Skip to content

Commit

Permalink
r Fixes typescript imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jwloka committed Apr 29, 2024
1 parent dbb0ccf commit 6471737
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/compiler/Compiler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/environment/compile-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/compile-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
4 changes: 2 additions & 2 deletions packages/testing/src/compile-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<CompilerOptions> | { tsconfig?: Partial<ts.ParsedCommandLine>; project?: Partial<ts.CompilerOptions>; targets?: string[] }
overrides?: Partial<CompilerOptions> & { tsconfig?: Partial<ts.ParsedCommandLine>; project?: Partial<ts.CompilerOptions>; targets?: string[] }
): CompilerOptions => {
const reporter = new ReporterMock(system);
return {
Expand Down

0 comments on commit 6471737

Please sign in to comment.