Use local version of format diagnostic for tsp-client (#9348)
This commit is contained in:
Родитель
59d869dd3a
Коммит
ea6d51607c
|
@ -1,9 +1,4 @@
|
|||
import {
|
||||
resolvePath,
|
||||
getDirectoryPath,
|
||||
ResolveCompilerOptionsOptions,
|
||||
formatDiagnostic,
|
||||
} from "@typespec/compiler";
|
||||
import { resolvePath, getDirectoryPath, ResolveCompilerOptionsOptions } from "@typespec/compiler";
|
||||
import {
|
||||
ModuleResolutionResult,
|
||||
resolveModule,
|
||||
|
@ -75,7 +70,8 @@ export async function compileTsp({
|
|||
saveInputs?: boolean;
|
||||
}): Promise<boolean> {
|
||||
const parsedEntrypoint = getDirectoryPath(resolvedMainFilePath);
|
||||
const { compile, NodeHost, resolveCompilerOptions } = await importTsp(parsedEntrypoint);
|
||||
const { compile, NodeHost, resolveCompilerOptions, formatDiagnostic } =
|
||||
await importTsp(parsedEntrypoint);
|
||||
|
||||
const outputDir = resolvePath(outputPath);
|
||||
const overrideOptions: Record<string, Record<string, string>> = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче