Skip to content

Commit 1280fb4

Browse files
committed
chore: camel case and ci commands
1 parent c89b45e commit 1280fb4

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ jobs:
222222
run: ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).buildCommand }}
223223

224224
- name: Build the playground
225-
run: yarn cli build playground javascript
225+
run: yarn cli build playground javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).buildCommand }}
226226

227227
- name: Run common and requester tests
228228
run: cd clients/algoliasearch-client-javascript && yarn test ${{ !contains(fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun, 'algoliasearch') && '--ignore algoliasearch' || '' }}
@@ -279,13 +279,13 @@ jobs:
279279
run: yarn cli snippets javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
280280

281281
- name: Build the snippets to check validity
282-
run: yarn cli build snippets javascript
282+
run: yarn cli build snippets javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).buildCommand }}
283283

284284
- name: Generate code guides
285285
run: yarn cli guides javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}
286286

287287
- name: Build the guides to check validity
288-
run: yarn cli build guides javascript
288+
run: yarn cli build guides javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).buildCommand }}
289289

290290
- name: Zip artifact before storing
291291
run: zip -r -y clients-javascript.zip clients/algoliasearch-client-javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).testsToStore }} ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).guidesToStore }} -x "**/node_modules**" "**/.yarn/cache/**" "**/.yarn/install-state.gz" "**/build/**" "**/dist/**" "**/.gradle/**" "**/bin/**" "**/.nx/**"

scripts/buildLanguages.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { existsSync } from 'node:fs';
22

3-
import { run, toAbsolutePath } from './common.js';
3+
import { createClientName, run, toAbsolutePath } from './common.js';
44
import { getLanguageFolder } from './config.js';
55
import { createSpinner } from './spinners.js';
66
import type { Generator, Language } from './types.js';
@@ -51,8 +51,14 @@ async function buildLanguage(language: Language, gens: Generator[], buildType: B
5151
break;
5252
}
5353

54-
await run(`yarn tsc ${gens.reduce((prev, curr) => `${prev} ${curr.client}.ts`, '')} --noEmit`, {
55-
cwd: buildType === 'playground' ? `${cwd}/node` : cwd,
54+
let fileNames = '';
55+
56+
if (buildType !== 'guides') {
57+
fileNames = gens.reduce((prev, curr) => `${prev} ${createClientName(curr.client, curr.language)}.ts`, '');
58+
}
59+
60+
await run(`yarn tsc ${fileNames} --noEmit`, {
61+
cwd: buildType === 'playground' ? `${cwd}/node` : `${cwd}/src`,
5662
language,
5763
});
5864

0 commit comments

Comments
 (0)