finny 0.6.8 → 0.6.10
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/bin/finny +1 -8
- package/package.json +2 -2
package/bin/finny
CHANGED
|
@@ -47,23 +47,16 @@ function findBinary() {
|
|
|
47
47
|
const packageName = getPlatformPackageName()
|
|
48
48
|
const binaryName = os.platform() === "win32" ? "finny.exe" : "finny"
|
|
49
49
|
|
|
50
|
-
// Try multiple search paths
|
|
51
50
|
const searchPaths = []
|
|
52
51
|
|
|
53
|
-
// Try require.resolve first
|
|
54
52
|
try {
|
|
55
53
|
const packageJsonPath = require.resolve(`${packageName}/package.json`)
|
|
56
54
|
const packageDir = path.dirname(packageJsonPath)
|
|
57
55
|
searchPaths.push(path.join(packageDir, "bin", binaryName))
|
|
58
|
-
} catch {
|
|
59
|
-
// Package not found via require.resolve
|
|
60
|
-
}
|
|
56
|
+
} catch {}
|
|
61
57
|
|
|
62
|
-
// npm global install - node_modules sibling
|
|
63
58
|
searchPaths.push(path.join(__dirname, "..", "node_modules", packageName, "bin", binaryName))
|
|
64
|
-
// npm global install - hoisted to parent
|
|
65
59
|
searchPaths.push(path.join(__dirname, "..", "..", packageName, "bin", binaryName))
|
|
66
|
-
// npm global lib directory
|
|
67
60
|
searchPaths.push(path.join(__dirname, "..", "..", "..", packageName, "bin", binaryName))
|
|
68
61
|
|
|
69
62
|
for (const searchPath of searchPaths) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "finny",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"description": "AI-powered quantitative trading CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"postinstall": "node ./postinstall.mjs"
|
|
11
11
|
},
|
|
12
12
|
"optionalDependencies": {
|
|
13
|
-
"finny-darwin-arm64": "0.6.
|
|
13
|
+
"finny-darwin-arm64": "0.6.10",
|
|
14
14
|
"finny-darwin-x64": "0.6.7",
|
|
15
15
|
"finny-linux-arm64": "0.6.7",
|
|
16
16
|
"finny-linux-x64": "0.6.7",
|