Why?
roblox-ts compiles TypeScript to Luau. luau2ts is the mirror: it compiles Luau to TypeScript. Migrate an existing Luau codebase to TS, run authored Luau through TS-native tooling, or round-trip with roblox-ts.
Install
npm install -g luau2tsluau2ts foo.luau # → stdout
luau2ts foo.luau -o foo.ts # → file
luau2ts src/ -o out/ # → directory tree
luau2ts -p default.project.json -o out/ # → Rojo projectCompatibility
Ships two emit modes: rbxts for the @rbxts/* ecosystem, and native for runtimes that mirror Roblox's Luau API. 100% Luau conformance against the upstream test suite. Source maps included.
