Improve intentionality

This commit is contained in:
Joseph Garrone
2024-09-22 22:48:31 +02:00
parent c07af8491c
commit 26b8dd9cda
2 changed files with 12 additions and 8 deletions

View File

@ -26,18 +26,19 @@ export async function generateResources(params: {
rmSync(resourcesDirPath, { recursive: true });
}
const { writeMessagePropertiesFiles } = await generateResourcesForMainTheme({
resourcesDirPath,
themeName,
buildContext
});
const { writeMessagePropertiesFilesForThemeVariant } =
await generateResourcesForMainTheme({
resourcesDirPath,
themeName,
buildContext
});
for (const themeVariantName of themeVariantNames) {
generateResourcesForThemeVariant({
resourcesDirPath,
themeName,
themeVariantName,
writeMessagePropertiesFiles
writeMessagePropertiesFiles: writeMessagePropertiesFilesForThemeVariant
});
}
}