Skip to content

Commit

Permalink
fix: get core meta version (#1094)
Browse files Browse the repository at this point in the history
* fix: get core meta version

* fix: get core meta version
  • Loading branch information
TopGrd authored Jun 3, 2024
1 parent 7eac5a4 commit 9639fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class Cache extends Map<keyof CacheContents, ValueOf<CacheContent
try {
return {
name: '@oclif/core',
version: JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8')),
version: JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8')).version,
}
} catch {
return {name: '@oclif/core', version: 'unknown'}
Expand Down

0 comments on commit 9639fd4

Please sign in to comment.