Skip to content

Commit

Permalink
Temporarily fetch only 10 files
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Sep 11, 2024
1 parent 12e30fc commit 081aa15
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions scripts/fetch-codebase.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@ async function getFilenames() {
getFullData: true,
});

return files.filter(
(file) =>
file.path.endsWith(".ts") &&
!file.path.endsWith(".d.ts") &&
!file.path.endsWith(".test.ts") &&
!file.path.includes("nodes-base/test") &&
!file.path.includes("nodes-base/utils")
);
return files
.filter(
(file) =>
file.path.endsWith(".ts") &&
!file.path.endsWith(".d.ts") &&
!file.path.endsWith(".test.ts") &&
!file.path.includes("nodes-base/test") &&
!file.path.includes("nodes-base/utils")
)
.slice(0, 10); // @TEMP
}

async function fetchFile(file, signal) {
Expand Down

0 comments on commit 081aa15

Please sign in to comment.