build: fix console printing ordering
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 3 Dec 2023 13:19:29 +0000 (14:19 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 3 Dec 2023 13:19:29 +0000 (14:19 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
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'],