@ericsanchezok/synergy 0.0.0-dev-202601171113 → 0.0.0-dev-202601171210
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/synergy +8 -1
- package/package.json +12 -12
package/bin/synergy
CHANGED
|
@@ -45,6 +45,7 @@ if (!arch) {
|
|
|
45
45
|
arch = os.arch()
|
|
46
46
|
}
|
|
47
47
|
const base = "synergy-" + platform + "-" + arch
|
|
48
|
+
const scopedBase = "@ericsanchezok/" + base
|
|
48
49
|
const binary = platform === "windows" ? "synergy.exe" : "synergy"
|
|
49
50
|
|
|
50
51
|
function findBinary(startDir) {
|
|
@@ -52,6 +53,12 @@ function findBinary(startDir) {
|
|
|
52
53
|
for (;;) {
|
|
53
54
|
const modules = path.join(current, "node_modules")
|
|
54
55
|
if (fs.existsSync(modules)) {
|
|
56
|
+
// Check scoped package first (@ericsanchezok/synergy-windows-x64)
|
|
57
|
+
const scopedCandidate = path.join(modules, scopedBase, "bin", binary)
|
|
58
|
+
if (fs.existsSync(scopedCandidate)) {
|
|
59
|
+
return scopedCandidate
|
|
60
|
+
}
|
|
61
|
+
// Fallback: check non-scoped packages
|
|
55
62
|
const entries = fs.readdirSync(modules)
|
|
56
63
|
for (const entry of entries) {
|
|
57
64
|
if (!entry.startsWith(base)) {
|
|
@@ -75,7 +82,7 @@ const resolved = findBinary(scriptDir)
|
|
|
75
82
|
if (!resolved) {
|
|
76
83
|
console.error(
|
|
77
84
|
'It seems that your package manager failed to install the right version of the Synergy CLI for your platform. You can try manually installing the "' +
|
|
78
|
-
|
|
85
|
+
scopedBase +
|
|
79
86
|
'" package',
|
|
80
87
|
)
|
|
81
88
|
process.exit(1)
|
package/package.json
CHANGED
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.0.0-dev-
|
|
9
|
+
"version": "0.0.0-dev-202601171210",
|
|
10
10
|
"optionalDependencies": {
|
|
11
|
-
"@ericsanchezok/synergy-linux-arm64": "0.0.0-dev-
|
|
12
|
-
"@ericsanchezok/synergy-linux-x64": "0.0.0-dev-
|
|
13
|
-
"@ericsanchezok/synergy-linux-x64-baseline": "0.0.0-dev-
|
|
14
|
-
"@ericsanchezok/synergy-linux-arm64-musl": "0.0.0-dev-
|
|
15
|
-
"@ericsanchezok/synergy-linux-x64-musl": "0.0.0-dev-
|
|
16
|
-
"@ericsanchezok/synergy-linux-x64-baseline-musl": "0.0.0-dev-
|
|
17
|
-
"@ericsanchezok/synergy-darwin-arm64": "0.0.0-dev-
|
|
18
|
-
"@ericsanchezok/synergy-darwin-x64": "0.0.0-dev-
|
|
19
|
-
"@ericsanchezok/synergy-darwin-x64-baseline": "0.0.0-dev-
|
|
20
|
-
"@ericsanchezok/synergy-windows-x64": "0.0.0-dev-
|
|
21
|
-
"@ericsanchezok/synergy-windows-x64-baseline": "0.0.0-dev-
|
|
11
|
+
"@ericsanchezok/synergy-linux-arm64": "0.0.0-dev-202601171210",
|
|
12
|
+
"@ericsanchezok/synergy-linux-x64": "0.0.0-dev-202601171210",
|
|
13
|
+
"@ericsanchezok/synergy-linux-x64-baseline": "0.0.0-dev-202601171210",
|
|
14
|
+
"@ericsanchezok/synergy-linux-arm64-musl": "0.0.0-dev-202601171210",
|
|
15
|
+
"@ericsanchezok/synergy-linux-x64-musl": "0.0.0-dev-202601171210",
|
|
16
|
+
"@ericsanchezok/synergy-linux-x64-baseline-musl": "0.0.0-dev-202601171210",
|
|
17
|
+
"@ericsanchezok/synergy-darwin-arm64": "0.0.0-dev-202601171210",
|
|
18
|
+
"@ericsanchezok/synergy-darwin-x64": "0.0.0-dev-202601171210",
|
|
19
|
+
"@ericsanchezok/synergy-darwin-x64-baseline": "0.0.0-dev-202601171210",
|
|
20
|
+
"@ericsanchezok/synergy-windows-x64": "0.0.0-dev-202601171210",
|
|
21
|
+
"@ericsanchezok/synergy-windows-x64-baseline": "0.0.0-dev-202601171210"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|