diff --git a/lib/install.js b/lib/install.js index 1d62380..8e93074 100755 --- a/lib/install.js +++ b/lib/install.js @@ -9,7 +9,7 @@ import compressing from 'compressing'; import { SingleBar, Presets } from 'cli-progress'; import { parse } from 'semver'; -import { version } from '../package.json' assert { type: 'json' }; +import manifest from '../package.json' assert { type: 'json' }; install() .catch((error) => { @@ -56,7 +56,7 @@ async function install() { /** * Parsed string version to Semver version object */ - let parsedVersion = parse(version); + let parsedVersion = parse(manifest.version); /** * Version string of the format `X.Y.Z-pre`.