We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8036d82 commit 6166fd3Copy full SHA for 6166fd3
packages/inquirerer/src/utils.ts
@@ -3,13 +3,13 @@ import { findAndRequirePackageJson } from "find-and-require-package-json";
3
4
// Function to display the version information
5
export function displayVersion(): any {
6
- const pkg = findAndRequirePackageJson();
+ const pkg = findAndRequirePackageJson(__dirname);
7
console.log(green(`Name: ${pkg.name}`));
8
console.log(blue(`Version: ${pkg.version}`));
9
}
10
11
12
export function getVersion(): string {
13
14
return pkg.version;
15
0 commit comments