We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b9b430 commit 4062b4fCopy full SHA for 4062b4f
script/fix-vendored-twsearch.ts
@@ -6,7 +6,11 @@ const DIR = fileURLToPath(
6
new URL("../src/cubing/vendor/mpl/twsearch", import.meta.url),
7
);
8
9
-for (const fileName of await readdir(DIR)) {
+for (const dirEnt of await readdir(DIR, { withFileTypes: true })) {
10
+ const { name: fileName, isDirectory } = dirEnt;
11
+ if (isDirectory()) {
12
+ continue;
13
+ }
14
const filePath = join(DIR, fileName);
15
console.log("Fixing:", filePath);
16
let contents = await readFile(filePath, "utf-8");
0 commit comments