Skip to content

Commit

Permalink
fix: change package version retreival from package.lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jirihofman committed Sep 17, 2023
1 parent 5204846 commit c91709a
Show file tree
Hide file tree
Showing 2 changed files with 2,552 additions and 13,176 deletions.
2 changes: 1 addition & 1 deletion components/landing/feature.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,6 @@ export default Feature;

/** Creates a Badge with currently installed package version. */
const VersionBadge = (name) => {
const version = packageLock.dependencies[name]?.version;
const version = packageLock.packages['node_modules/' + name]?.version;
return <Badge bg='info'>{version}</Badge>;
};
Loading

0 comments on commit c91709a

Please sign in to comment.