Skip to content

Commit

Permalink
chore: skip guides if no search client
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Oct 9, 2024
1 parent 3c07c18 commit 2e9eeee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/buildLanguages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ async function buildLanguage(language: Language, gens: Generator[], buildType: B

if (buildType !== 'guides') {
fileNames = gens.reduce((prev, curr) => `${prev} ${createClientName(curr.client, curr.language)}.ts`, '');
} else if (!fileNames.includes('search')) {
// only search is needed for guides right now, if it's not being built, no need to validate guides
break;
}

await run(`yarn tsc ${fileNames} --noEmit`, {
Expand Down

0 comments on commit 2e9eeee

Please sign in to comment.