@randomlabs/slate 1.0.6 → 1.0.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/bin/slate1 +2 -4
- package/package.json +12 -12
- package/postinstall.mjs +1 -1
package/bin/slate1
CHANGED
|
@@ -63,8 +63,6 @@ function findBinaryInNodeModules(startDir) {
|
|
|
63
63
|
return candidate
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
const scopedCandidate = join(modules, "@randomlabs", base, "bin", binary)
|
|
67
|
-
if (existsSync(scopedCandidate)) return scopedCandidate
|
|
68
66
|
}
|
|
69
67
|
const parent = dirname(current)
|
|
70
68
|
if (parent === current) {
|
|
@@ -79,7 +77,7 @@ function findBinaryInDist(rootDir) {
|
|
|
79
77
|
if (!existsSync(distDir)) {
|
|
80
78
|
return
|
|
81
79
|
}
|
|
82
|
-
const candidate = join(distDir,
|
|
80
|
+
const candidate = join(distDir, base, "bin", binary)
|
|
83
81
|
if (existsSync(candidate)) {
|
|
84
82
|
return candidate
|
|
85
83
|
}
|
|
@@ -102,4 +100,4 @@ if (!resolved) {
|
|
|
102
100
|
process.exit(1)
|
|
103
101
|
}
|
|
104
102
|
|
|
105
|
-
run(resolved)
|
|
103
|
+
run(resolved)
|
package/package.json
CHANGED
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.8",
|
|
10
10
|
"license": "Proprietary",
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"@randomlabs/slate-linux-arm64": "1.0.
|
|
13
|
-
"@randomlabs/slate-linux-x64-baseline-musl": "1.0.
|
|
14
|
-
"@randomlabs/slate-darwin-arm64": "1.0.
|
|
15
|
-
"@randomlabs/slate-windows-x64": "1.0.
|
|
16
|
-
"@randomlabs/slate-windows-x64-baseline": "1.0.
|
|
17
|
-
"@randomlabs/slate-darwin-x64": "1.0.
|
|
18
|
-
"@randomlabs/slate-linux-x64-musl": "1.0.
|
|
19
|
-
"@randomlabs/slate-linux-arm64-musl": "1.0.
|
|
20
|
-
"@randomlabs/slate-linux-x64-baseline": "1.0.
|
|
21
|
-
"@randomlabs/slate-darwin-x64-baseline": "1.0.
|
|
22
|
-
"@randomlabs/slate-linux-x64": "1.0.
|
|
12
|
+
"@randomlabs/slate-linux-arm64": "1.0.8",
|
|
13
|
+
"@randomlabs/slate-linux-x64-baseline-musl": "1.0.8",
|
|
14
|
+
"@randomlabs/slate-darwin-arm64": "1.0.8",
|
|
15
|
+
"@randomlabs/slate-windows-x64": "1.0.8",
|
|
16
|
+
"@randomlabs/slate-windows-x64-baseline": "1.0.8",
|
|
17
|
+
"@randomlabs/slate-darwin-x64": "1.0.8",
|
|
18
|
+
"@randomlabs/slate-linux-x64-musl": "1.0.8",
|
|
19
|
+
"@randomlabs/slate-linux-arm64-musl": "1.0.8",
|
|
20
|
+
"@randomlabs/slate-linux-x64-baseline": "1.0.8",
|
|
21
|
+
"@randomlabs/slate-darwin-x64-baseline": "1.0.8",
|
|
22
|
+
"@randomlabs/slate-linux-x64": "1.0.8"
|
|
23
23
|
}
|
|
24
24
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -49,7 +49,7 @@ function detectPlatformAndArch() {
|
|
|
49
49
|
|
|
50
50
|
function findBinary() {
|
|
51
51
|
const { platform, arch } = detectPlatformAndArch()
|
|
52
|
-
const packageName =
|
|
52
|
+
const packageName = `slate-${platform}-${arch}`
|
|
53
53
|
const binaryName = platform === "windows" ? "slate.exe" : "slate"
|
|
54
54
|
|
|
55
55
|
try {
|