tooling/.lune/typecheck.luau
Erica Marigold 9dd820d804 chore(lune): include lune dev scripts
* Adds dev lune scripts to execute tooling in dev env, also a nice way
  to dogfood the project.
* Disables all lints in luaurc temporarily, since luau-lsp analysis displays
  lint errors even for ignored files for some reason.
* Fixes a few `TypeError`s.
2024-11-25 06:23:39 +00:00

17 lines
441 B
Text

--> Run luau-lsp analysis to check for type errors
local process = require("@lune/process")
local CommandBuilder = require("./exec")
local PLATFORM_SEP = if process.os == "windows" then ";" else ":"
process.exit(
CommandBuilder.new("luau-lsp")
:withArg("analyze")
:withArgs({ "--settings", ".vscode/settings.json" })
:withArgs({ "--ignore", "'**/*_packages/**'" })
:withArg(".")
:withStdioStrategy("forward")
:exec().code
)