-
Let's say I'm building a library using Teal and I want to publish it to LuaRocks. From what I understand, you'd publish the generated Lua code. But what about the typing information from the original Teal code? Is there a way to publish that too, and in a way that just works well with the Teal application that's using the dependency? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
In theory I believe you could bundle declaration files or possibly just upload both and let teal figure it out |
Beta Was this translation helpful? Give feedback.
-
@hishamhm, I just found https://github.com/luarocks/luarocks-build-cyan. It seems you are the author. Why isn't this rock more recommended? (I guess it shouldn't be that hard to add an option to include the tl files. Would you accept contribution for this feature?) |
Beta Was this translation helpful? Give feedback.
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: