#package #luau #source-map #wally #checking #type #thunks

bin+lib wally-package-types

Tool to fix wally package thunks with Luau types

8 stable releases

1.4.0 Oct 26, 2024
1.3.2 Jul 14, 2024
1.3.1 Jan 20, 2024
1.3.0 Dec 25, 2023
1.0.0 Jul 3, 2022

#191 in Games

MIT license

23KB
513 lines

Wally Package Types Fixer

A small tool which fixes the issue of wally thunks not including exported types, necessary for proper Luau type checking support.

The tool takes in a path to a Packages folder, as well as a path to a generated sourcemap, and attempts to retrieve the relevant types and append them to the top of the package thunk

Install your wally packages

wally install

Generate a sourcemap (Rojo 7.1.0+) using

rojo sourcemap default.project.json --output sourcemap.json

then run

wally-package-types --sourcemap sourcemap.json Packages/

Dependencies

~5–13MB
~162K SLoC