feat: add UnLua TS spec, TSTL compiler plugin, types, examples, and tests

This commit is contained in:
szy73711 committed 2026-11-28 22:26:22 +08:00
1 parent 68852d049c
commit c0ac6eaad6
19 files changed
+3273 -1

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
{
"name": "ts2lua-unreal",
"version": "0.1.0",
"description": "TypeScript to Lua toolchain and compiler plugin tailored for Unreal Engine + UnLua",
"private": true,
"main": "dist/plugin/index.js",
"types": "dist/plugin/index.d.ts",
"scripts": {
"build:plugin": "tsc -p tsconfig.plugin.json",
"build:examples": "npm run build:plugin && tstl -p examples/tsconfig.json",
"watch:examples": "tstl -p examples/tsconfig.json --watch",
"test": "npm run build:plugin && node --test test/*.test.mjs"
},
"dependencies": {
"lua-types": "^2.14.1",
"typescript": "6.0.2",
"typescript-to-lua": "^1.37.3"
},
"devDependencies": {
"@types/node": "^22.0.0"
}
}