ialex32x / unity-jsb

It brings Javascript runtime capability to Unity3D by integrating QuickJS.
MIT License
335 stars 41 forks source link

How to build TS examples ? #100

Open LaCreArthur opened 1 year ago

LaCreArthur commented 1 year ago

How do I build the TS files from Scripts/src ? The entry files of the Sample script in the SampleScene are from Scripts/out, if I modify the JS here, it is reflected in the SampleScene. But I didn't found how to compile the TS files. I tested npm run build it didn't worked. Thanks for helping

ialex32x commented 1 year ago

Run tsc in the same directory of tsconfig.json. (or tsc --watch to auto recompile all ts source changes)

Run npm install to get all deps installed.