Skip to content

Commit

Permalink
Attempt to use require instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ElementUser committed Aug 25, 2024
1 parent 0d4212c commit 60b5819
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/check-translation-jsons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -140,7 +141,7 @@ const markdown = createTranslationProgessMarkdown({
const format = (options: {
code: string;
filePath: string;
}): Promise<string> => (biomeFormat as any)(options);
}): Promise<string> => biome.format(options);

const formattedContent = await format({
code: content,
Expand Down

0 comments on commit 60b5819

Please sign in to comment.