diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..07250f8 --- /dev/null +++ b/init.lua @@ -0,0 +1,5 @@ +-- Helper Lua file for easy require if tiny-ecs is used as a git submodule or +-- folder. Not needed in many cases, including luarocks distribution. + +local directory = (...):match("(.-)[^%.]+$") +return require(directory .. 'tiny')