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