From 711088786ae7a4383857b4d9ffd7aee331e3c912 Mon Sep 17 00:00:00 2001 From: zumbiepig <121742281+zumbiepig@users.noreply.github.com> Date: Sun, 15 Sep 2024 17:00:46 -0700 Subject: [PATCH] format and fix issues --- build.ts | 7 +++++-- src/resources/scripts/main.ts | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.ts b/build.ts index 2eda508..7c996bc 100644 --- a/build.ts +++ b/build.ts @@ -5,7 +5,7 @@ import { statSync, writeFileSync, readFileSync, - rmSync, + // rmSync, } from 'fs'; import { resolve, dirname, basename } from 'path'; import { minify } from 'html-minifier'; @@ -29,7 +29,10 @@ function getFiles(baseDir: string, dir?: string, filesArr?: string[]) { const isDev = process.env.NODE_ENV === 'development' ? true : false; const srcDir = resolve(import.meta.dir, 'src'); -const publicDir = resolve(import.meta.dir, process.env['BUILD_PATH'] ?? 'public'); +const publicDir = resolve( + import.meta.dir, + process.env['BUILD_PATH'] ?? 'public', +); const srcFiles = getFiles(resolve(import.meta.dir, 'src')); const bundleFiles: string[] = []; const minifyFiles: string[] = []; diff --git a/src/resources/scripts/main.ts b/src/resources/scripts/main.ts index 4694fdb..f5047c8 100644 --- a/src/resources/scripts/main.ts +++ b/src/resources/scripts/main.ts @@ -1025,5 +1025,6 @@ if (window.location.hostname === null) { backups, consoleLog, openAboutBlank, + $, ]); }