Rebuild the theme when properties files changes

This commit is contained in:
Joseph Garrone 2024-12-21 15:22:19 +01:00
parent 0e461fd072
commit 5203813e7b

View File

@ -623,10 +623,16 @@ export async function command(params: {
} }
) )
.on("all", async (...[, filePath]) => { .on("all", async (...[, filePath]) => {
ignore_conditions: {
if (filePath.endsWith(".properties")) {
break ignore_conditions;
}
ignore_account_spa: { ignore_account_spa: {
const doImplementAccountSpa = const doImplementAccountSpa =
buildContext.implementedThemeTypes.account.isImplemented && buildContext.implementedThemeTypes.account.isImplemented &&
buildContext.implementedThemeTypes.account.type === "Single-Page"; buildContext.implementedThemeTypes.account.type ===
"Single-Page";
if (!doImplementAccountSpa) { if (!doImplementAccountSpa) {
break ignore_account_spa; break ignore_account_spa;
@ -634,7 +640,10 @@ export async function command(params: {
if ( if (
!isInside({ !isInside({
dirPath: pathJoin(buildContext.themeSrcDirPath, "account"), dirPath: pathJoin(
buildContext.themeSrcDirPath,
"account"
),
filePath filePath
}) })
) { ) {
@ -660,6 +669,7 @@ export async function command(params: {
return; return;
} }
}
console.log(`Detected changes in ${filePath}`); console.log(`Detected changes in ${filePath}`);