From 0486b674fcdf25c31757339c8da90ef15b4e9f76 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sat, 6 Jul 2024 23:40:28 +0200 Subject: [PATCH] Standard versioning --- init.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index ea90943..15f8855 100644 --- a/init.lua +++ b/init.lua @@ -1,9 +1,12 @@ - -- pretty.init -- In case somebody loads `init.lua`. Just redirects to `pretty.lua`. +_VERSION = '0.5.0' + -------------------------------------------------------------------------------- local premodule = (...) if premodule == 'init' then premodule = '' end -return require (premodule .. (premodule ~= '' and '.' or '') .. 'pretty') +local pretty = require (premodule .. (premodule ~= '' and '.' or '') .. 'pretty') +pretty._VERSION = _VERSION +return pretty