Skip to content

How to publish Teal libraries to LuaRocks #836

Answered by hishamhm
mtdowling asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, right now we don't have the most convenient story for this. I hope we can add better Teal support for LuaRocks in the near future. Right now it's really "upload both and let teal figure it out"

Doing the following in a rockspec is a bit of a hack, but it works:

build = {
   type = "builtin",
   modules = {
      example = "src/example.lua",
      ["example.sub"] = "src/example/sub.lua",
   },
   install = {
      lua = {
         ["example"] = "src/example.tl",
         ["example.sub"] = "src/example/sub.tl",
      },
   }
}

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@hishamhm
Comment options

Answer selected by mtdowling
@Aire-One
Comment options

Comment options

You must be logged in to vote
1 reply
@hishamhm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants