From afd8c59f834c871851944bc76bcadfc28be66d88 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Fri, 3 May 2024 21:34:16 +0800 Subject: [PATCH] style: eslint --- vite.config.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 426025e4..be4294b3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -22,13 +22,13 @@ function genCpModule(module: string) { } let startScripts: string[] | undefined = undefined; let MoeHooModule: any = []; -if (process.env.NAPCAT_BUILDSYS == "linux") { - if (process.env.NAPCAT_BUILDARCH == "x64") { +if (process.env.NAPCAT_BUILDSYS == 'linux') { + if (process.env.NAPCAT_BUILDARCH == 'x64') { MoeHooModule = [{ src: './src/core.lib/MoeHoo-linux-x64.node', dest: 'dist' }]; } startScripts = ['./script/napcat.sh']; -} else if (process.env.NAPCAT_BUILDSYS == "win32") { - if (process.env.NAPCAT_BUILDARCH == "x64") { +} else if (process.env.NAPCAT_BUILDSYS == 'win32') { + if (process.env.NAPCAT_BUILDARCH == 'x64') { MoeHooModule = [{ src: './src/core.lib/MoeHoo-win32-x64.node', dest: 'dist' }]; } startScripts = ['./script/napcat.ps1', './script/napcat.bat', './script/napcat-utf8.bat', './script/napcat-utf8.ps1', './script/napcat-log.ps1']; @@ -37,7 +37,7 @@ if (process.env.NAPCAT_BUILDSYS == "linux") { startScripts = ['./script/napcat.sh', './script/napcat.ps1', './script/napcat.bat', './script/napcat-utf8.bat', './script/napcat-utf8.ps1', './script/napcat-log.ps1']; } -let baseConfigPlugin: PluginOption[] = [ +const baseConfigPlugin: PluginOption[] = [ // PreprocessorDirectives(), cp({ targets: [