File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ async function buildLiteSpec({
50
50
51
51
await fsp . writeFile ( bundledPath , yaml . dump ( lite ) ) ;
52
52
53
+ // remove unused components for the outputted light spec
54
+ await run (
55
+ `yarn openapi bundle ${ bundledPath } -o ${ bundledPath } --ext yml --remove-unused-components` ,
56
+ ) ;
57
+
53
58
await transformBundle ( {
54
59
bundledPath,
55
60
clientName : spec ,
@@ -149,7 +154,7 @@ export async function buildSpecs({
149
154
150
155
// the `lite` spec will build the `recommend` spec, so we remove it from the list
151
156
// to prevent concurrent builds
152
- if ( clients . includes ( 'algoliasearch' ) ) {
157
+ if ( clients . includes ( 'algoliasearch' ) && ! docs ) {
153
158
clients = clients . filter ( ( client ) => client !== 'recommend' ) ;
154
159
}
155
160
You can’t perform that action at this time.
0 commit comments