Closed premek closed 8 years ago
You'll need to update the value of package.path
in Moonshine. It's uses different paths to C Lua by default. I should document this somewhere.
Try:
package.path = '?/init.lua.js;'..package.path
Thanks
I found this issue with https://github.com/TannerRogalsky/punchdrunk which is using moonshine. Looks like moonshine is not trying to load
init.lua
from a folder that isrequire
d.require "foldername"
I think it should try to load
foldername.lua
etc but alsofoldername/init.lua
'In lua it is configurable but default can be found here: http://www.lua.org/source/5.1/luaconf.h.html