1 /* eslint-disable n/no-unpublished-import */
2 import { env } from 'node:process';
4 import { build } from 'esbuild';
5 import { clean } from 'esbuild-plugin-clean';
6 import { copy } from 'esbuild-plugin-copy';
8 const isDevelopmentBuild = env.BUILD === 'development';
9 const sourcemap = !!isDevelopmentBuild;
13 entryPoints: ['./src/start.ts', './src/charging-station/ChargingStationWorker.ts'],
17 external: ['@mikro-orm/*'],
26 './dist/assets/*.json',
27 './dist/assets/json-schemas',
28 './dist/assets/station-templates',
29 './dist/assets/ui-protocol',
35 from: ['./src/assets/config.json'],
39 from: ['./src/assets/idtags!(-template)*.json'],
43 from: ['./src/assets/json-schemas/**/*.json
'],
44 to: ['./assets/json
-schemas
'],
47 from: ['./src/assets/station-templates/**/
*.json
'],
48 to: ['./assets/station-templates
'],