diff --git a/src/dotnet.ts b/src/dotnet.ts index 81acc423..29c330f7 100644 --- a/src/dotnet.ts +++ b/src/dotnet.ts @@ -1,4 +1,4 @@ -import { readFile } from "fs/promises"; +import { promises } from "fs"; import { resolve } from "path"; import { @@ -14,6 +14,8 @@ import { getPullRequestFiles } from "./files"; import type { DotNetFormatVersion } from "./version"; +const { readFile } = promises; + export type FormatFunction = (options: FormatOptions) => Promise; export interface FormatOptions {