Skip to content

Commit

Permalink
chore: do not structure json import
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Mar 9, 2024
1 parent 774afe5 commit 293ff20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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`.
Expand Down

0 comments on commit 293ff20

Please sign in to comment.