Skip to content

Commit

Permalink
fix(core): fix missing versions from nx report (#9450)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Mar 23, 2022
1 parent 95704f1 commit c7e621f
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 c7e621f

Please sign in to comment.