1.9 KiB
1.9 KiB
name, description
| name | description |
|---|---|
| sp-javy-cli-linux-arm64 | Platform wrapper for Javy v8.1.1 CLI on linux-arm64 — downloads, verifies SHA-256, exposes getJavyBinary() path. Consumed by wasm-compiler-javy via optionalDependencies. |
sp-javy-cli-linux-arm64
| Symbol | Kind | Responsibility |
|---|---|---|
getJavyBinary |
Function | Returns the absolute filesystem path to the bundled Javy binary under bin/javy |
JAVY_PLATFORM |
Constant | Platform triple: "linux-arm64" |
JAVY_VERSION |
Constant | Pinned upstream version: "v8.1.1" |
File Structure: packages/devtools/tooling/javy-cli-linux-arm64/src/index.ts
Sibling packages:
@suaveplan/javy-cli-darwin-arm64— macOS ARM64 variant@suaveplan/javy-cli-darwin-x64— macOS x64 variant@suaveplan/javy-cli-linux-x64— Linux x64 variant@suaveplan/javy-cli-win32-x64— Windows x64 variant@suaveplan/wasm-compiler-javy— consumer that spawns the binary
Patterns:
Quick Start:
import { getJavyBinary } from "@suaveplan/javy-cli-linux-arm64";
const binaryPath = getJavyBinary(); // absolute path to bin/javy
Constraints:
os: ["linux"], cpu: ["arm64"]— npm/bun skip installation on mismatched platformspostinstallscript downloads the binary from GitHub releases and verifies SHA-256 (c160127f4f41000216790e24bcfda860c51b0c5cc12808eb3691a0de88faa53a)- Set
JAVY_SKIP_DOWNLOAD=1to skip download for offline CI; you MUST manually seedbin/javy - Throws if binary is missing (postinstall failed or skipped without seed)
- Consumed exclusively through
optionalDependenciesby@suaveplan/wasm-compiler-javy
Checklist:
getJavyBinary()returns an absolute path that exists after postinstallJAVY_VERSIONmatches the upstream release pinned in postinstall- Setting
JAVY_SKIP_DOWNLOAD=1without seeding causes a clear runtime error