chore(cli): restore windows optionalDependency for parity with published metadata\n\nKeep @just-every/code-win32-x64 in source so local packs and git installs have fast-path; release workflow still overwrites versions and includes all platform packages. Bun 404 is harmless.

This commit is contained in:
James Peter
2025-08-30 13:44:00 +10:00
parent 27a0b4e49e
commit 030e9ae2e8
2 changed files with 11 additions and 4 deletions
+9 -3
View File
@@ -351,9 +351,15 @@ jobs:
for f in release-assets/*; do
b="$(basename "$f")"
# Derive target triple from the filename: code-<triple>[.exe].*
t="${b#code-}"
t="${t%%.*}"
# Derive target triple from the filename while preserving optional .exe (Windows):
# code-<triple>[.exe].(zst|tar.gz|zip) -> <triple>[.exe]
case "$b" in
*.tar.gz) base="${b%.tar.gz}" ;;
*.zst) base="${b%.zst}" ;;
*.zip) base="${b%.zip}" ;;
*) base="$b" ;;
esac
t="${base#code-}"
meta="$(map_target "$t")" || true
if [ -z "$meta" ]; then
echo "Skipping unrecognized artifact: $b"
+2 -1
View File
@@ -37,6 +37,7 @@
"@just-every/code-darwin-arm64": "0.2.47",
"@just-every/code-darwin-x64": "0.2.47",
"@just-every/code-linux-x64-musl": "0.2.47",
"@just-every/code-linux-arm64-musl": "0.2.47"
"@just-every/code-linux-arm64-musl": "0.2.47",
"@just-every/code-win32-x64": "0.2.47"
}
}