Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johnnymorganz/wally-package-types

Re-export types in Wally package thunks
https://github.com/johnnymorganz/wally-package-types

Last synced: 15 days ago
JSON representation

Re-export types in Wally package thunks

Awesome Lists containing this project

README

        

# Wally Package Types Fixer

A small tool which fixes the issue of [wally](https://github.com/UpliftGames/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

```sh
wally install
```

Generate a sourcemap (Rojo 7.1.0+) using

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

then run

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