@threadbase-sh/streamer 1.15.3 → 1.15.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/cli.cjs +7 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1605,7 +1605,13 @@ function getVersion() {
|
|
|
1605
1605
|
function resolveVersion() {
|
|
1606
1606
|
const scriptPath = process.argv[1] ?? "";
|
|
1607
1607
|
const here = scriptPath ? (0, import_node_path3.dirname)(scriptPath) : process.cwd();
|
|
1608
|
-
|
|
1608
|
+
let realHere = here;
|
|
1609
|
+
try {
|
|
1610
|
+
realHere = (0, import_node_path3.dirname)((0, import_node_fs2.realpathSync)(scriptPath));
|
|
1611
|
+
} catch {
|
|
1612
|
+
}
|
|
1613
|
+
const searchDirs = realHere === here ? [here, (0, import_node_path3.join)(here, "..")] : [here, (0, import_node_path3.join)(here, ".."), realHere, (0, import_node_path3.join)(realHere, "..")];
|
|
1614
|
+
for (const dir of searchDirs) {
|
|
1609
1615
|
try {
|
|
1610
1616
|
const v = (0, import_node_fs2.readFileSync)((0, import_node_path3.join)(dir, "version.txt"), "utf8").trim();
|
|
1611
1617
|
if (v) return v;
|