Fix bug package.json not properly updated when initializing the single page account theme with webpack
This commit is contained in:
parent
8203ed687b
commit
6bfd388827
@ -75,17 +75,22 @@ export function updateAccountThemeImplementationInConfig(params: {
|
|||||||
return id<z.ZodType<TargetType>>(zTargetType);
|
return id<z.ZodType<TargetType>>(zTargetType);
|
||||||
})();
|
})();
|
||||||
|
|
||||||
return zParsedPackageJson.parse(
|
const parsedPackageJson = JSON.parse(
|
||||||
JSON.parse(
|
fs.readFileSync(buildContext.packageJsonFilePath).toString("utf8")
|
||||||
fs
|
|
||||||
.readFileSync(buildContext.packageJsonFilePath)
|
|
||||||
.toString("utf8")
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
zParsedPackageJson.parse(parsedPackageJson);
|
||||||
|
|
||||||
|
return parsedPackageJson;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
parsedPackageJson.keycloakify.accountThemeImplementation =
|
parsedPackageJson.keycloakify.accountThemeImplementation =
|
||||||
accountThemeType;
|
accountThemeType;
|
||||||
|
|
||||||
|
fs.writeFileSync(
|
||||||
|
buildContext.packageJsonFilePath,
|
||||||
|
Buffer.from(JSON.stringify(parsedPackageJson, undefined, 4), "utf8")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user