From 60b5819e8b63e2055554121552a579f540360b19 Mon Sep 17 00:00:00 2001 From: William Lam Date: Sun, 25 Aug 2024 13:09:17 -0400 Subject: [PATCH] Attempt to use require instead --- scripts/check-translation-jsons.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/check-translation-jsons.ts b/scripts/check-translation-jsons.ts index df2a8daa4d..59a8145c0a 100644 --- a/scripts/check-translation-jsons.ts +++ b/scripts/check-translation-jsons.ts @@ -2,7 +2,8 @@ import fs from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; -import { format as biomeFormat } from "@biomejs/biome"; + +const biome = require('@biomejs/biome'); const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); @@ -140,7 +141,7 @@ const markdown = createTranslationProgessMarkdown({ const format = (options: { code: string; filePath: string; - }): Promise => (biomeFormat as any)(options); + }): Promise => biome.format(options); const formattedContent = await format({ code: content,