File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
clients/algoliasearch-client-javascript Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 5
5
" packages/*"
6
6
],
7
7
"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}'" ,
11
11
"clean" : " lerna run clean --parallel" ,
12
12
"release:bump" : " lerna version ${0:-patch} --no-changelog --no-git-tag-version --no-push --exact --force-publish --yes" ,
13
13
"release:publish" : " ts-node --project tsconfig.script.json scripts/publish.ts" ,
Original file line number Diff line number Diff line change
1
+ /* eslint-disable no-case-declarations */
1
2
import { CI , run } from './common' ;
2
- import { getLanguageFolder } from './config' ;
3
+ import { getClientsConfigField , getLanguageFolder } from './config' ;
3
4
import { createSpinner } from './oraLog' ;
4
5
import type { Generator , Language } from './types' ;
5
6
@@ -31,9 +32,15 @@ async function buildClient(
31
32
} ) ;
32
33
}
33
34
34
- // eslint-disable-next-line no-case-declarations
35
+ spinner . text = "building 'JavaScript' clients" ;
36
+
37
+ const npmNamespace = getClientsConfigField ( 'javascript' , 'npmNamespace' ) ;
35
38
const toRun = gens
36
- . map ( ( gen ) => `*${ gen . additionalProperties . packageName } ` )
39
+ . map ( ( { additionalProperties : { packageName } } ) =>
40
+ packageName === 'algoliasearch'
41
+ ? packageName
42
+ : `${ npmNamespace } /${ packageName } `
43
+ )
37
44
. join ( ',' ) ;
38
45
39
46
await run ( `yarn build:many '{${ toRun } }'` , {
You can’t perform that action at this time.
0 commit comments