Skip to content

Commit

Permalink
Change from rome.json to biome.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Sep 1, 2023
1 parent 37d365d commit b5e7c71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions script/fix-vendored-twsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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);

0 comments on commit b5e7c71

Please sign in to comment.