Skip to content

Commit 48ae9a2

Browse files
committed
fix: docs
1 parent c083303 commit 48ae9a2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/specs/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ async function buildLiteSpec({
5050

5151
await fsp.writeFile(bundledPath, yaml.dump(lite));
5252

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+
5358
await transformBundle({
5459
bundledPath,
5560
clientName: spec,
@@ -149,7 +154,7 @@ export async function buildSpecs({
149154

150155
// the `lite` spec will build the `recommend` spec, so we remove it from the list
151156
// to prevent concurrent builds
152-
if (clients.includes('algoliasearch')) {
157+
if (clients.includes('algoliasearch') && !docs) {
153158
clients = clients.filter((client) => client !== 'recommend');
154159
}
155160

0 commit comments

Comments
 (0)