repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: avoid duplicated slash in connection url
[e-mobility-charging-stations-simulator.git]
/
build-requirements.js
diff --git
a/build-requirements.js
b/build-requirements.js
index f73e3e89c642fbb315175cfd586e178108d8ac37..c92b20953402121217bb38ed224222498cac1852 100644
(file)
--- a/
build-requirements.js
+++ b/
build-requirements.js
@@
-1,7
+1,9
@@
import chalk from 'chalk'
import { satisfies } from 'semver'
import chalk from 'chalk'
import { satisfies } from 'semver'
-import packageJson from './package.json' assert { type: 'json' }
import { version, exit } from 'node:process'
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.
/**
* Check if the current node version match the required engines version.