meetsoma 0.3.5 → 0.3.8
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/dist/thin-cli.js +18 -1
- package/package.json +1 -1
package/dist/thin-cli.js
CHANGED
|
@@ -1115,7 +1115,24 @@ async function showAbout() {
|
|
|
1115
1115
|
|
|
1116
1116
|
// thin-cli.js
|
|
1117
1117
|
var __dirname = dirname3(fileURLToPath(import.meta.url));
|
|
1118
|
-
var
|
|
1118
|
+
var __CLI_VERSION__ = "__CLI_VERSION__";
|
|
1119
|
+
function resolveCliVersion() {
|
|
1120
|
+
if (!__CLI_VERSION__.startsWith("__")) return __CLI_VERSION__;
|
|
1121
|
+
const candidates = [
|
|
1122
|
+
join3(__dirname, "package.json"),
|
|
1123
|
+
join3(__dirname, "..", "package.json"),
|
|
1124
|
+
join3(__dirname, "..", "npm", "package.json")
|
|
1125
|
+
];
|
|
1126
|
+
for (const p of candidates) {
|
|
1127
|
+
try {
|
|
1128
|
+
const pkg = JSON.parse(readFileSync3(p, "utf-8"));
|
|
1129
|
+
if (pkg.name === "meetsoma") return pkg.version;
|
|
1130
|
+
} catch {
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
return "unknown";
|
|
1134
|
+
}
|
|
1135
|
+
var VERSION = resolveCliVersion();
|
|
1119
1136
|
var semverCmp2 = semverCmp;
|
|
1120
1137
|
async function showWelcome() {
|
|
1121
1138
|
printSigma();
|