@gluecharm-lab/easyspecs-cli 0.3.3 → 0.3.4
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/main.cjs +21 -1
- package/dist/main.cjs.map +2 -2
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -29084,7 +29084,27 @@ function formatCliStderrLine(line, useAnsi) {
|
|
|
29084
29084
|
}
|
|
29085
29085
|
|
|
29086
29086
|
// src/cli/main.ts
|
|
29087
|
-
|
|
29087
|
+
function resolveCliPackageVersion() {
|
|
29088
|
+
if (true) {
|
|
29089
|
+
return "0.3.4";
|
|
29090
|
+
}
|
|
29091
|
+
const candidates = [
|
|
29092
|
+
path61.join(__dirname, "..", "package.json"),
|
|
29093
|
+
path61.join(__dirname, "..", "..", "packages", "cli", "package.json")
|
|
29094
|
+
];
|
|
29095
|
+
for (const pkgPath of candidates) {
|
|
29096
|
+
try {
|
|
29097
|
+
const raw = fs63.readFileSync(pkgPath, "utf8");
|
|
29098
|
+
const j = JSON.parse(raw);
|
|
29099
|
+
if (typeof j.version === "string") {
|
|
29100
|
+
return j.version;
|
|
29101
|
+
}
|
|
29102
|
+
} catch {
|
|
29103
|
+
}
|
|
29104
|
+
}
|
|
29105
|
+
return "0.0.0-dev";
|
|
29106
|
+
}
|
|
29107
|
+
var PKG_VERSION = resolveCliPackageVersion();
|
|
29088
29108
|
function isNonEmptyFactoryFailureArray(x) {
|
|
29089
29109
|
if (!Array.isArray(x) || x.length === 0) {
|
|
29090
29110
|
return false;
|