I want to automatically add a comment to the top of a "main.lua" file that is transpiled with TSTL's luabundle flag.
The idea is to explain to readers that this file was generated with a tool and is not intended to be read by humans, and that the actual source code for the file is available on GitHub and people should go there to read the source code.
Unfortunately, it sounds like performing this simple task is currently impossible, because:
- TSTL does not support overwriting the bundle template.
- TSTL does not support customizing the comment header that says:
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
I would love the ability to do one of these two things (preferably both!), either through a TSTL plugin, or through a TSTL compiler flag, or some other mechanism.
I want to automatically add a comment to the top of a "main.lua" file that is transpiled with TSTL's
luabundleflag.The idea is to explain to readers that this file was generated with a tool and is not intended to be read by humans, and that the actual source code for the file is available on GitHub and people should go there to read the source code.
Unfortunately, it sounds like performing this simple task is currently impossible, because:
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]I would love the ability to do one of these two things (preferably both!), either through a TSTL plugin, or through a TSTL compiler flag, or some other mechanism.