Skip to content

Commit d3eeb99

Browse files
Add logging for base paths
1 parent edf6425 commit d3eeb99

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

generator/cmd/generateall.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@ executeSynchronous(async () => {
5656
// resolve absolute path
5757
summaryPath = await resolveAbsolutePath(summaryPath);
5858

59-
if (args['batch-count'] !== undefined && args['batch-index'] !== undefined) {
60-
basePaths = chunker(basePaths, args['batch-count'])[args['batch-index']];
59+
const batchIndex = args['batch-index'];
60+
const batchCount = args['batch-count'];
61+
if (batchCount !== undefined && batchIndex !== undefined) {
62+
basePaths = chunker(basePaths, batchCount)[batchIndex];
63+
64+
console.log(`Generating following base paths for batch ${batchIndex}: ${JSON.stringify(basePaths, null, 2)}`);
6165
}
6266

6367
const schemaConfigs: SchemaConfiguration[] = [];

0 commit comments

Comments
 (0)