Steps to reproduce:
- Set up a hello-world TSTL project.
- Add
"resolveJsonModule": true to the tsconfig.json file.
- Make a sample JSON file, something like:
{
"things": [
{
"foo": 1,
"bar": 2
},
{
"foo": 1,
"bar": 2
}
]
}
- Use the following
main.ts file:
import * as thingsJSON from "./things.json"
print(thingsJSON.things[0].foo);
- Compile the project, which will produce a
main.lua file and a 0 byte things.json file in the output directory.
Steps to reproduce:
"resolveJsonModule": trueto thetsconfig.jsonfile.{ "things": [ { "foo": 1, "bar": 2 }, { "foo": 1, "bar": 2 } ] }main.tsfile:main.luafile and a 0 bytethings.jsonfile in the output directory.