Skip to content

Commit fed0e58

Browse files
committed
last trigger cache try
1 parent 6937791 commit fed0e58

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

clients/algoliasearch-client-javascript/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"packages/*"
66
],
77
"scripts": {
8-
"build:all": "lerna run build --parallel --ignore '{*requester-*,*client-common}'",
9-
"build:many": "lerna run build --parallel --scope ${0:-'*'}",
10-
"build:utils": "lerna run build --parallel --scope '{*requester-*,*client-common}'",
8+
"build:all": "lerna run build --parallel --ignore '{@algolia/requester-*,@algolia/client-common}'",
9+
"build:many": "lerna run build --parallel --scope ${0:-'{@algolia/*,algoliasearch}'}",
10+
"build:utils": "lerna run build --parallel --scope '{@algolia/requester-*,@algolia/client-common}'",
1111
"clean": "lerna run clean --parallel",
1212
"release:bump": "lerna version ${0:-patch} --no-changelog --no-git-tag-version --no-push --exact --force-publish --yes",
1313
"release:publish": "ts-node --project tsconfig.script.json scripts/publish.ts",

scripts/buildClients.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
/* eslint-disable no-case-declarations */
12
import { CI, run } from './common';
2-
import { getLanguageFolder } from './config';
3+
import { getClientsConfigField, getLanguageFolder } from './config';
34
import { createSpinner } from './oraLog';
45
import type { Generator, Language } from './types';
56

@@ -31,9 +32,15 @@ async function buildClient(
3132
});
3233
}
3334

34-
// eslint-disable-next-line no-case-declarations
35+
spinner.text = "building 'JavaScript' clients";
36+
37+
const npmNamespace = getClientsConfigField('javascript', 'npmNamespace');
3538
const toRun = gens
36-
.map((gen) => `*${gen.additionalProperties.packageName}`)
39+
.map(({ additionalProperties: { packageName } }) =>
40+
packageName === 'algoliasearch'
41+
? packageName
42+
: `${npmNamespace}/${packageName}`
43+
)
3744
.join(',');
3845

3946
await run(`yarn build:many '{${toRun}}'`, {

0 commit comments

Comments
 (0)