chore(*): use prettier for formatting

This commit is contained in:
Cory Dransfeldt 2025-06-14 16:43:12 -07:00
parent 6c659fe1d0
commit 029caaaa9e
No known key found for this signature in database
73 changed files with 1390 additions and 794 deletions

View file

@ -1,9 +1,9 @@
import fs from "fs";
import path from "path";
import { minify } from "terser";
import fs from 'fs';
import path from 'path';
import { minify } from 'terser';
export const minifyJsComponents = async () => {
const scriptsDir = "dist/assets/scripts";
const scriptsDir = 'dist/assets/scripts';
const minifyJsFilesInDir = async (dir) => {
const files = fs.readdirSync(dir);
@ -13,8 +13,8 @@ export const minifyJsComponents = async () => {
if (stat.isDirectory()) {
await minifyJsFilesInDir(filePath);
} else if (fileName.endsWith(".js")) {
const fileContent = fs.readFileSync(filePath, "utf8");
} else if (fileName.endsWith('.js')) {
const fileContent = fs.readFileSync(filePath, 'utf8');
const minified = await minify(fileContent);
if (minified.error) {