build: fix console printing ordering
[e-mobility-charging-stations-simulator.git] / bundle.js
index ec12c5da80190df2696f816bae9a3f6015202084..4bdee327fd0015cef8c3a4bc8c0e79dad72e678f 100644 (file)
--- a/bundle.js
+++ b/bundle.js
@@ -9,8 +9,10 @@ import { copy } from 'esbuild-plugin-copy';
 const isDevelopmentBuild = env.BUILD === 'development';
 const sourcemap = !!isDevelopmentBuild;
 
-console.info(chalk.green(`Building in ${isDevelopmentBuild ? 'development' : 'production'} mode`));
 (async () => {
+  console.info(
+    chalk.green(`Building in ${isDevelopmentBuild ? 'development' : 'production'} mode`),
+  );
   console.time('Build time');
   await build({
     entryPoints: ['./src/start.ts', './src/charging-station/ChargingStationWorker.ts'],