fix indentation in build-assets.mjs

This commit is contained in:
Hazelnoot 2024-10-15 12:28:22 -04:00
parent 652cc8602c
commit 8897b191d9

View file

@ -78,7 +78,7 @@ async function buildBackendScript() {
]) {
let source = await fs.readFile(file, { encoding: 'utf-8' });
source = source.replaceAll(/\bLANGS\b/g, JSON.stringify(Object.keys(locales)));
source = source.replaceAll(/\bLANGS_VERSION\b/g, JSON.stringify(localesVersion));
source = source.replaceAll(/\bLANGS_VERSION\b/g, JSON.stringify(localesVersion));
const { code } = await terser.minify(source, { toplevel: true });
await fs.writeFile(`./packages/backend/built/server/web/${path.basename(file)}`, code);
}