From 391a10619eb9e6ef7970b9d5a7050fcb9d91b60e Mon Sep 17 00:00:00 2001 From: Mark Wiemer <7833360+mark-wiemer@users.noreply.github.com> Date: Sun, 22 Sep 2024 22:07:44 -0700 Subject: [PATCH] Log build mode (#512) --- ahk2 | 2 +- src/build.mjs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ahk2 b/ahk2 index fddd2e0f..651e79b4 160000 --- a/ahk2 +++ b/ahk2 @@ -1 +1 @@ -Subproject commit fddd2e0f25f333c9d09bae918fe15c646d5a924a +Subproject commit 651e79b4e24caf1512319a768deae098397f9a39 diff --git a/src/build.mjs b/src/build.mjs index 9ea9a7e8..dbddc098 100644 --- a/src/build.mjs +++ b/src/build.mjs @@ -3,6 +3,9 @@ import { build } from 'esbuild'; /* eslint-disable-next-line no-undef */ const isProd = process.argv.indexOf('--mode=production') >= 0; +/* eslint-disable-next-line no-undef */ +console.log('Building AHK++ in', isProd ? 'production' : 'development', 'mode'); + // https://esbuild.github.io/api build({ entryPoints: ['./src/extension.ts'],