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

bin+lib wally-package-types

Tool to fix wally package thunks with Luau types

6 stable releases

1.3.1 Jan 20, 2024
1.3.0 Dec 25, 2023
1.2.1 Mar 19, 2023
1.1.1 Aug 5, 2022
1.0.0 Jul 3, 2022

#311 in Programming languages

32 downloads per month

MIT license

22KB
497 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–16MB
~148K SLoC