scripts/.lune/typecheck.luau
Erica Marigold ca5f2d53c8
chore(lune): restructure util libraries and include dev scripts
* Moved all util libs like `channel` into a `lib/` directory within
  `.lune`. Also includes a builder-pattern exec lib.
* Added dev scripts for fmt (stylua) and typecheck (luau-lsp).
2024-12-04 05:49:01 +00:00

16 lines
No EOL
450 B
Text

--> Run luau-lsp analysis to check for type errors
local process = require("@lune/process")
local CommandBuilder = require("./lib/exec")
process.exit(
CommandBuilder.new("~/.rokit/bin/luau-lsp")
:withArg("analyze")
:withArgs({ "--settings", ".vscode/settings.json" })
:withArgs({ "--ignore", "'**/.pesde/**'" })
:withArgs({ "--ignore", "'./test-files/**'" })
:withArg(".")
:withStdioStrategy("forward")
:exec().code
)