Skip to content

Commit 208b990

Browse files
committed
CMS-46358 Enhance normalizePropertyGroups to log found property groups
1 parent c786d9e commit 208b990

File tree

1 file changed

+9
-1
lines changed
  • packages/optimizely-cms-cli/src/service

1 file changed

+9
-1
lines changed

packages/optimizely-cms-cli/src/service/utils.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,16 @@ export function normalizePropertyGroups(
250250
);
251251
}
252252

253+
const deduplicatedGroups = Array.from(groupMap.values());
254+
255+
// Log found property groups
256+
if (deduplicatedGroups.length > 0) {
257+
const groupKeys = deduplicatedGroups.map((g) => g.displayName).join(', ');
258+
console.log('Property Groups found: %s', chalk.bold.cyan(`[${groupKeys}]`));
259+
}
260+
253261
// Return deduplicated array in the order they were last seen
254-
return Array.from(groupMap.values());
262+
return deduplicatedGroups;
255263
}
256264

257265
/**

0 commit comments

Comments
 (0)