From b5e7c711e1ca3ac6fe90ab33c15198ad03ceae3e Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Fri, 1 Sep 2023 05:06:55 -0700 Subject: [PATCH] Change from `rome.json` to `biome.json`. --- rome.json => biome.json | 0 script/fix-vendored-twsearch.js | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename rome.json => biome.json (100%) diff --git a/rome.json b/biome.json similarity index 100% rename from rome.json rename to biome.json diff --git a/script/fix-vendored-twsearch.js b/script/fix-vendored-twsearch.js index 69d391890..47416cc85 100644 --- a/script/fix-vendored-twsearch.js +++ b/script/fix-vendored-twsearch.js @@ -4,7 +4,7 @@ import { join } from "path"; const DIR = new URL("../src/cubing/vendor/mpl/twsearch", import.meta.url) .pathname; // TODO(https://github.com/cubing/cubing.js/issues/290) -const ROME_JSON = new URL("../rome.json", import.meta.url).pathname; +const BIOME_JSON = new URL("../biome.json", import.meta.url).pathname; let dynamicFileName = null; for (const fileName of await readdir(DIR)) { @@ -45,10 +45,10 @@ for (const fileName of await readdir(DIR)) { await writeFile(filePath, contents); } -console.log("Fixing:", ROME_JSON); -let contents = await readFile(ROME_JSON, "utf-8"); +console.log("Fixing:", BIOME_JSON); +let contents = await readFile(BIOME_JSON, "utf-8"); contents = contents.replaceAll( /"src\/cubing\/vendor\/mpl\/twsearch\/twsearch-.*.js"/g, `"src/cubing/vendor/mpl/twsearch/${dynamicFileName}"`, ); -await writeFile(ROME_JSON, contents); +await writeFile(BIOME_JSON, contents);