From 6046634bfe2a786a254e87a9ddcdde638a0d8e38 Mon Sep 17 00:00:00 2001 From: mshanemc Date: Fri, 9 Aug 2024 10:51:48 -0500 Subject: [PATCH] fix: error for using -m CustomLabels with the preset --- src/collections/componentSetBuilder.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/collections/componentSetBuilder.ts b/src/collections/componentSetBuilder.ts index 205f190c6..d2c6a71ef 100644 --- a/src/collections/componentSetBuilder.ts +++ b/src/collections/componentSetBuilder.ts @@ -291,6 +291,9 @@ export const entryToTypeAndName = if (type.isAddressable === false && parent !== undefined && !type.unaddressableWithoutParent) { throw new Error(`Cannot use this type, instead use ${parent.name}`); } + if (type.name === 'CustomLabels' && type.strategies?.transformer === 'decomposedLabels') { + throw new Error('Use CustomLabel instead of CustomLabels for decomposed labels'); + } return { type, metadataName: name.length ? name.join(':').trim() : '*' }; };