inquirerer 2.1.10 → 2.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/utils.js +2 -2
- package/package.json +3 -3
- package/utils.js +2 -2
package/esm/utils.js
CHANGED
|
@@ -2,11 +2,11 @@ import { green, blue } from 'yanse';
|
|
|
2
2
|
import { findAndRequirePackageJson } from "find-and-require-package-json";
|
|
3
3
|
// Function to display the version information
|
|
4
4
|
export function displayVersion() {
|
|
5
|
-
const pkg = findAndRequirePackageJson();
|
|
5
|
+
const pkg = findAndRequirePackageJson(__dirname);
|
|
6
6
|
console.log(green(`Name: ${pkg.name}`));
|
|
7
7
|
console.log(blue(`Version: ${pkg.version}`));
|
|
8
8
|
}
|
|
9
9
|
export function getVersion() {
|
|
10
|
-
const pkg = findAndRequirePackageJson();
|
|
10
|
+
const pkg = findAndRequirePackageJson(__dirname);
|
|
11
11
|
return pkg.version;
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inquirerer",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.11",
|
|
4
4
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
5
5
|
"description": "TypeScript-first library for building beautiful CLI interfaces with interactive prompts",
|
|
6
6
|
"main": "index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"deepmerge": "^4.3.1",
|
|
33
|
-
"find-and-require-package-json": "0.
|
|
33
|
+
"find-and-require-package-json": "0.8.0",
|
|
34
34
|
"js-yaml": "^4.1.0",
|
|
35
35
|
"minimist": "^1.2.8",
|
|
36
36
|
"yanse": "0.1.6"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"clean-ansi": "0.1.3",
|
|
42
42
|
"makage": "0.1.8"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "a704f3ec0e53747e4fba85c2018138439120f309"
|
|
45
45
|
}
|
package/utils.js
CHANGED
|
@@ -6,11 +6,11 @@ const yanse_1 = require("yanse");
|
|
|
6
6
|
const find_and_require_package_json_1 = require("find-and-require-package-json");
|
|
7
7
|
// Function to display the version information
|
|
8
8
|
function displayVersion() {
|
|
9
|
-
const pkg = (0, find_and_require_package_json_1.findAndRequirePackageJson)();
|
|
9
|
+
const pkg = (0, find_and_require_package_json_1.findAndRequirePackageJson)(__dirname);
|
|
10
10
|
console.log((0, yanse_1.green)(`Name: ${pkg.name}`));
|
|
11
11
|
console.log((0, yanse_1.blue)(`Version: ${pkg.version}`));
|
|
12
12
|
}
|
|
13
13
|
function getVersion() {
|
|
14
|
-
const pkg = (0, find_and_require_package_json_1.findAndRequirePackageJson)();
|
|
14
|
+
const pkg = (0, find_and_require_package_json_1.findAndRequirePackageJson)(__dirname);
|
|
15
15
|
return pkg.version;
|
|
16
16
|
}
|