Hello there, I have problems with importing lua libraries.
Here's the situation: I'm using I'm using this template and try to add e.g. lurker to my project. when I write import lurker = require('lurker') in main.ts, everything is fine and it transpiles to local lurker = require('lurker') in lua code, but when I try do do the same thing in file in child directory, e.g. src/some/folder/script.ts, generated lua code will contain local lurker = require('some.folder.lurker') (instead of just 'lurker').
How to solve this problem? Thanks in advance.
Hello there, I have problems with importing lua libraries.
Here's the situation: I'm using I'm using this template and try to add e.g. lurker to my project. when I write
import lurker = require('lurker')inmain.ts, everything is fine and it transpiles tolocal lurker = require('lurker')in lua code, but when I try do do the same thing in file in child directory, e.g.src/some/folder/script.ts, generated lua code will containlocal lurker = require('some.folder.lurker')(instead of just'lurker').How to solve this problem? Thanks in advance.