From fb7118ff1c8f0dcd61f15e51b193512283d83fa1 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 9 Jan 2022 22:16:29 +0100 Subject: build: Add eslint-plugin-unicorn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kristóf Marussy --- packages/main/esbuild.config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/main/esbuild.config.js') diff --git a/packages/main/esbuild.config.js b/packages/main/esbuild.config.js index d5f6f1e..ef0aa71 100644 --- a/packages/main/esbuild.config.js +++ b/packages/main/esbuild.config.js @@ -1,7 +1,7 @@ import getRepoInfo from 'git-repo-info'; import { node } from '../../config/buildConstants.js'; -import fileURLToDirname from '../../config/fileURLToDirname.js'; +import fileUrlToDirname from '../../config/fileUrlToDirname.js'; import getEsbuildConfig from '../../config/getEsbuildConfig.js'; const externalPackages = ['electron']; @@ -14,7 +14,7 @@ const gitInfo = getRepoInfo(); export default getEsbuildConfig( { - absWorkingDir: fileURLToDirname(import.meta.url), + absWorkingDir: fileUrlToDirname(import.meta.url), entryPoints: ['src/index.ts'], outfile: 'dist/index.cjs', format: 'cjs', @@ -23,9 +23,9 @@ export default getEsbuildConfig( external: externalPackages, }, { - VITE_DEV_SERVER_URL: process.env.VITE_DEV_SERVER_URL || null, + VITE_DEV_SERVER_URL: process.env.VITE_DEV_SERVER_URL || undefined, GIT_SHA: gitInfo.abbreviatedSha, GIT_BRANCH: gitInfo.branch, - BUILD_DATE: new Date().getTime(), + BUILD_DATE: Date.now(), }, ); -- cgit v1.2.3-54-g00ecf