lilpack.init

lilpack

init() -> extensions

Initialize the LILPACK package system

Initializes the package system: strips standard Lua searchers, discovers and verifies installed packages, and installs the LILPACK and script-local searchers into the require chain. Returns a table of discovered extensions (builtins, modes, cli). Safe to call multiple times; subsequent calls return the cached extensions table.

It also sets the global PACK_VERSION to the version of ./lilpack.json, when the start directory holds one and no pack binary set the global already. See "The pack's version" above.