X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=build-requirements.js;fp=build-requirements.js;h=c92b20953402121217bb38ed224222498cac1852;hb=8fa6f565c86b72f3d6f040d283da83740a51542e;hp=f73e3e89c642fbb315175cfd586e178108d8ac37;hpb=88dce0e10e9f3b8f5d65ff990b584c34e6ddb3eb;p=e-mobility-charging-stations-simulator.git diff --git a/build-requirements.js b/build-requirements.js index f73e3e89..c92b2095 100644 --- a/build-requirements.js +++ b/build-requirements.js @@ -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.