Skip to content

Commit 7c5270b

Browse files
committed
chore: fix script cleanup
1 parent d3012d3 commit 7c5270b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

scripts/common.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import clientsConfig from '../config/clients.config.json' with { type: 'json' };
1010
import releaseConfig from '../config/release.config.json' with { type: 'json' };
1111

1212
import { Cache } from './cache.ts';
13-
import { getDockerImage, getTestOutputFolder } from './config.ts';
13+
import { getClientsConfigField, getDockerImage } from './config.ts';
1414
import { generateOpenapitools } from './pre-gen/index.ts';
1515
import { getGitAuthor } from './release/common.ts';
1616
import { buildSpecs } from './specs/index.ts';
@@ -294,9 +294,12 @@ export async function setupAndGen(
294294

295295
for (const gen of generators) {
296296
if (mode === 'guides') {
297-
await run(`rm -rf ${path.join('docs', mode, gen.language, getTestOutputFolder(gen.language))}`, {
298-
language: gen.language,
299-
});
297+
await run(
298+
`rm -rf ${path.join('docs', mode, gen.language, getClientsConfigField(gen.language, ['snippets', 'outputFolder']))}`,
299+
{
300+
language: gen.language,
301+
},
302+
);
300303
}
301304

302305
const spinner = createSpinner(`generating ${mode} for ${gen.key}`);

0 commit comments

Comments
 (0)