sequant 1.5.2 ā 1.5.3
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.
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* sequant status - Show version and configuration
|
|
3
3
|
*/
|
|
4
4
|
import chalk from "chalk";
|
|
5
|
-
import { getManifest } from "../lib/manifest.js";
|
|
5
|
+
import { getManifest, getPackageVersion } from "../lib/manifest.js";
|
|
6
6
|
import { fileExists } from "../lib/fs.js";
|
|
7
7
|
import { readdir } from "fs/promises";
|
|
8
8
|
export async function statusCommand() {
|
|
9
9
|
console.log(chalk.bold("\nš Sequant Status\n"));
|
|
10
10
|
// Package version
|
|
11
|
-
console.log(chalk.gray(
|
|
11
|
+
console.log(chalk.gray(`Package version: ${getPackageVersion()}`));
|
|
12
12
|
// Check initialization
|
|
13
13
|
const manifest = await getManifest();
|
|
14
14
|
if (!manifest) {
|
package/dist/src/lib/manifest.js
CHANGED
|
@@ -29,6 +29,9 @@ function findPackageJson() {
|
|
|
29
29
|
}
|
|
30
30
|
const pkg = JSON.parse(findPackageJson());
|
|
31
31
|
const PACKAGE_VERSION = pkg.version;
|
|
32
|
+
export function getPackageVersion() {
|
|
33
|
+
return PACKAGE_VERSION;
|
|
34
|
+
}
|
|
32
35
|
export async function getManifest() {
|
|
33
36
|
if (!(await fileExists(MANIFEST_PATH))) {
|
|
34
37
|
return null;
|