Install
sloptor is one native binary for macOS on ARM64, Linux on x64 and ARM64, and Windows on x64. Pick whichever way your project already installs tools.
From npm
Section titled “From npm”For rbxts projects that already live in the JavaScript ecosystem, add @rotor-rbx/rotor as a dev dependency. Its exact-version optional dependency supplies the native executable for your platform, so installing and running it never downloads from a release URL.
pnpm add --save-dev @rotor-rbx/rotornpm install --save-dev @rotor-rbx/rotorbun add --dev @rotor-rbx/rotoryarn add --dev @rotor-rbx/rotorThen run it through your package manager. The npm package calls the binary rotor, while release archives and toolchain managers call it sloptor. They're the same program, and the rest of these docs write sloptor.
pnpm exec rotor buildnpx rotor buildbunx rotor buildyarn rotor buildOptional dependencies must stay enabled. A lockfile or install created with --no-optional gives an actionable missing-package error. Reinstall without that flag, or install the error's @rotor-rbx/rotor-<platform>-<architecture> package at exactly the same version as @rotor-rbx/rotor.
Coming from the old download-based package? Remove any trustedDependencies entry or pnpm build-script approval that was only there for sloptor, then reinstall normally. The @rotor-rbx/rotor/scripts/install.js subpath still resolves the installed binary, but it no longer downloads anything.
Client API
Section titled “Client API”The package also exports an asynchronous client for tools that drive builds:
import { createBuildSession } from "@rotor-rbx/rotor";
await using session = createBuildSession();const result = await session.build({ project: "." });With a toolchain manager
Section titled “With a toolchain manager”# misemise use -g github:howmanyslop/sloptor@2.8.3
# rokitrokit add howmanyslop/sloptor@2.8.3[tools]sloptor = "howmanyslop/sloptor@2.8.3"
# foreman.toml[tools]sloptor = { github = "howmanyslop/sloptor", version = "2.8.3" }From a release archive
Section titled “From a release archive”Every GitHub release has archives named sloptor-v<version>-<os>-<arch> (.tar.gz, or .zip on Windows) plus bare binaries and checksums. Download the one for your platform and put sloptor on your PATH.
From source
Section titled “From source”Building from source needs the Rust version pinned in mise.toml (mise install rust installs it):
git clone https://github.com/howmanyslop/sloptor && cd sloptorcargo build --locked --release -p rotor_cliThe executable is target/release/sloptor.
Check the project
Section titled “Check the project”Run sloptor check for TypeScript diagnostics and sloptor build to validate the compiler's Rojo import layout. Native builds run without Node.js. Only external transformer plugins need it, along with the project's own typescript package.