Skip to content

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.

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.

Terminal window
pnpm add --save-dev @rotor-rbx/rotor

Then 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.

Terminal window
pnpm exec rotor build

Optional 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.

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: "." });
Terminal window
# mise
mise use -g github:howmanyslop/sloptor@2.8.3
# rokit
rokit add howmanyslop/sloptor@2.8.3
aftman.toml
[tools]
sloptor = "howmanyslop/sloptor@2.8.3"
# foreman.toml
[tools]
sloptor = { github = "howmanyslop/sloptor", version = "2.8.3" }

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.

Building from source needs the Rust version pinned in mise.toml (mise install rust installs it):

Terminal window
git clone https://github.com/howmanyslop/sloptor && cd sloptor
cargo build --locked --release -p rotor_cli

The executable is target/release/sloptor.

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.