fix: avoid duplicated slash in connection url
[e-mobility-charging-stations-simulator.git] / build-requirements.js
index f73e3e89c642fbb315175cfd586e178108d8ac37..c92b20953402121217bb38ed224222498cac1852 100644 (file)
@@ -1,7 +1,9 @@
 import chalk from 'chalk'
 import { satisfies } from 'semver'
-import packageJson from './package.json' assert { type: 'json' }
 import { version, exit } from 'node:process'
+import { readFileSync } from 'node:fs'
+
+const packageJson = JSON.parse(readFileSync('./package.json', 'utf8'))
 
 /**
  * Check if the current node version match the required engines version.