From 0e903c3520cdf20c0e87bfe09d1a6385adffc507 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Fri, 30 Jan 2026 09:25:12 +0000 Subject: [PATCH] Change: enabling PATH_TEST_INSTALL in production build --- esbuild.config.mjs | 10 +++------- package.json | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 18de237..fe62f52 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -21,14 +21,10 @@ const updateInfo = JSON.stringify(fs.readFileSync("./updates.md") + ""); const PATHS_TEST_INSTALL = process.env?.PATHS_TEST_INSTALL || ""; const PATH_TEST_INSTALL = PATHS_TEST_INSTALL.split(path.delimiter).map(p => p.trim()).filter(p => p.length); -if (!prod) { - if (PATH_TEST_INSTALL) { - console.log(`Built files will be copied to ${PATH_TEST_INSTALL}`); - } else { - console.log("Development build: You can install the plug-in to Obsidian for testing by exporting the PATHS_TEST_INSTALL environment variable with the paths to your vault plugins directories separated by your system path delimiter (':' on Unix, ';' on Windows)."); - } +if (PATH_TEST_INSTALL) { + console.log(`Built files will be copied to ${PATH_TEST_INSTALL}`); } else { - console.log("Production build"); + console.log("Development build: You can install the plug-in to Obsidian for testing by exporting the PATHS_TEST_INSTALL environment variable with the paths to your vault plugins directories separated by your system path delimiter (':' on Unix, ';' on Windows)."); } const moduleAliasPlugin = { diff --git a/package.json b/package.json index ac4c18a..027a2b0 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "predev": "npm run bakei18n", "dev": "node --env-file=.env esbuild.config.mjs", "prebuild": "npm run bakei18n", - "build": "node esbuild.config.mjs production", + "build": "node --env-file=.env esbuild.config.mjs production", "buildDev": "node esbuild.config.mjs dev", "lint": "eslint src", "svelte-check": "svelte-check --tsconfig ./tsconfig.json",