Skip to content

Commit b043a27

Browse files
committed
Don't skip decorators without components
1 parent 0e06eee commit b043a27

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

scripts/generate-decorator-registries.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,7 @@ const main = (): void => {
393393
DECORATORS.forEach(decoratorConfig => {
394394
registriesToDelete.delete(getDecoratorFileName(decoratorConfig.name));
395395
const componentsForDecorator = decoratorMap.get(decoratorConfig.name);
396-
if (componentsForDecorator && componentsForDecorator.length > 0) {
397-
writeRegistryFile(decoratorConfig, componentsForDecorator);
398-
} else {
399-
console.warn(`No components found for decorator '${decoratorConfig.name}'`);
400-
}
396+
writeRegistryFile(decoratorConfig, componentsForDecorator);
401397
});
402398

403399
registriesToDelete.forEach((fileName: string) => rmSync(join(REGISTRY_OUTPUT_DIR, fileName)));

0 commit comments

Comments
 (0)