/* eslint-disable n/no-unpublished-import */
import { env } from 'node:process';
+import chalk from 'chalk';
import { build } from 'esbuild';
import { clean } from 'esbuild-plugin-clean';
import { copy } from 'esbuild-plugin-copy';
const isDevelopmentBuild = env.BUILD === 'development';
const sourcemap = !!isDevelopmentBuild;
+console.info(chalk.green(`Building in ${isDevelopmentBuild ? 'development' : 'production'} mode`));
+console.time('Build time');
(async () => {
await build({
entryPoints: ['./src/start.ts', './src/charging-station/ChargingStationWorker.ts'],
],
});
})();
+console.timeEnd('Build time');