I have no clue why it's not working tbh, it seems like only node build-lualib.js builds the correct dependency json, if I run node dist/tstl.js or ts-node src/tstl.ts it seems that the module dependency list is not being built correctly. My guess is that it's because for lualib modules we use a constant map at module level, and I'm afraid node might somehow be reloading it when we don't want to, but the way build-lualib is set up now somehow makes it work
Perry on Discord
Perry on Discord