Skip to content

Commit 257db68

Browse files
Rel1cxCopilot
andauthored
Update scripts/update-website.ts
Co-authored-by: Copilot <[email protected]> Signed-off-by: REL1CX <[email protected]>
1 parent 967e71b commit 257db68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/update-website.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ interface RuleMeta {
2828

2929
const collectDocs = Effect.gen(function*() {
3030
const path = yield* Path.Path;
31-
return glob(DOCS_GLOB).map<RuleMeta>((doc) => {
31+
const docs = yield* Effect.sync(() => glob(DOCS_GLOB));
32+
return docs.map<RuleMeta>((doc) => {
3233
const catename = /^packages\/plugins\/eslint-plugin-react-([^/]+)/u.exec(doc)?.[1] ?? "";
3334
const basename = path.parse(path.basename(doc)).name;
3435

0 commit comments

Comments
 (0)