build(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git] / build-requirements.js
index f73e3e89c642fbb315175cfd586e178108d8ac37..501933c4fa5ae659809f3ab8f96f13f710d4caa4 100644 (file)
@@ -1,7 +1,11 @@
+import { readFileSync } from 'node:fs'
+import { exit, version } from 'node:process'
+
 import chalk from 'chalk'
+// eslint-disable-next-line n/no-unpublished-import
 import { satisfies } from 'semver'
-import packageJson from './package.json' assert { type: 'json' }
-import { version, exit } from 'node:process'
+
+const packageJson = JSON.parse(readFileSync('./package.json', 'utf8'))
 
 /**
  * Check if the current node version match the required engines version.