jecs-nightly/src/read_version.luau
2025-03-02 05:07:57 +01:00

10 lines
344 B
Text

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