X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=build-requirements.js;h=c92b20953402121217bb38ed224222498cac1852;hb=7bba3209fa975827c841aeab8fa20b4837ca64b1;hp=f73e3e89c642fbb315175cfd586e178108d8ac37;hpb=8f801a9337304c521bf1ae125debe87405865fbf;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.