Skip to content

Commit 6e7ea09

Browse files
chore: fix npm run build issues
1 parent 7ed3871 commit 6e7ea09

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

scripts/libs/showcaseScrapper.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,14 @@ export class ShowcaseScraper {
387387
return false;
388388
}
389389

390-
return error.errors.some((entry) => {
391-
if (!entry || typeof entry !== 'object' || !('type' in entry)) {
392-
return false;
393-
}
390+
return (
391+
error.errors?.some((entry) => {
392+
if (!entry || typeof entry !== 'object' || !('type' in entry)) {
393+
return false;
394+
}
394395

395-
return entry.type === 'NOT_FOUND';
396-
});
396+
return entry.type === 'NOT_FOUND';
397+
}) ?? false
398+
);
397399
}
398400
}

tests/showcase.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ type TestGithubRepoLinkOptions = {
486486
};
487487

488488
type TestCommentLink = string | TestGithubRepoLinkOptions;
489-
type TestCommentLinks = string[] | { author?: string; links: TestCommentLink[] };
489+
type TestCommentLinks = TestCommentLink[] | { author?: string; links: TestCommentLink[] };
490490

491491
interface TestRepoLanguage {
492492
node: {

0 commit comments

Comments
 (0)