X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FBootstrap.ts;h=00a7df7dd45e770b720a63aa848f3f19b8b1f51a;hb=728e01f09f2b43946aab50eb2ed9673bf2d2daa3;hp=6be5d275682b3e5bdf5ead54916334d94825ebee;hpb=721646e902fa12d165d4a1da06fb963fb30dc9f2;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 6be5d275..00a7df7d 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -7,7 +7,7 @@ import { type Worker, isMainThread } from 'node:worker_threads'; import chalk from 'chalk'; import { type AbstractUIServer, ChargingStationUtils, UIServerFactory } from './internal'; -import { version } from '../../package.json'; +import packageJson from '../../package.json' assert { type: 'json' }; import { BaseError } from '../exception'; import { type Storage, StorageFactory } from '../performance'; import { @@ -37,7 +37,7 @@ export class Bootstrap { private readonly uiServer!: AbstractUIServer | null; private readonly storage!: Storage; private numberOfStartedChargingStations!: number; - private readonly version: string = version; + private readonly version: string = packageJson.version; private initializedCounters: boolean; private started: boolean; private readonly workerScript: string;