We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c083303 commit 48ae9a2Copy full SHA for 48ae9a2
scripts/specs/index.ts
@@ -50,6 +50,11 @@ async function buildLiteSpec({
50
51
await fsp.writeFile(bundledPath, yaml.dump(lite));
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
+
58
await transformBundle({
59
bundledPath,
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');
159
}
160
0 commit comments