Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(core): fix missing versions from nx report (#9450)
  • Loading branch information
meeroslav authored and FrozenPandaz committed Mar 25, 2022
1 parent df5db9d commit f5e40ed
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/workspace/src/command-line/report.ts
Expand Up @@ -97,12 +97,8 @@ export function readPackageJson(p: string) {
}
}

export function readPackageVersion(p: string) {
let status = 'Not Found';
try {
status = readPackageJson(p).version;
} catch {}
return status;
export function readPackageVersion(p: string): string {
return readPackageJson(p).version || 'Not Found';
}

export function findInstalledCommunityPlugins(): {
Expand Down

0 comments on commit f5e40ed

Please sign in to comment.