Package Scripts
Browse docs
The lde.json file supports a “scripts” field that allows you to define custom scripts to run.
This is useful for:
- Shortening repeated usecases
- Running a package with
ldxbefore running a file (ie, teal, luacheck) - Doing something other than running a file
Example
{
"scripts": {
"dev": "lde run ./src/dev.lua"
}
}Running Scripts
You can run a script with lde run <name>.