jecs-pesde/.lune/read_version.luau

11 lines
341 B
Text

--!strict
local fs = require("@lune/fs")
local serde = require("@lune/serde")
local types = require("./types")
local manifest_contents = fs.readFile("pesde.toml")
local manifest: types.pesde_manifest = serde.decode("toml", manifest_contents) or error("Couldn't decode manifest.")
local jecs_version = manifest.version
print(jecs_version)