• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

TypeScript for Code Resources?

Status
Not open for further replies.
With the current resource system I'm not sure how uploading pure TypeScript code would work. Distributing TypeScript demo maps with the compiled Lua would work for showcasing, however the changes would be overwritten when saving in the editor. Also, the compiled Lua wouldn't be very portable. TypeScript resources would essentially only work in maps that are already using TypeScript. You might be able to get them to work maps that are already using Lua with some manual work though.

You can publish your TS code to NPM and projects can use that code by adding it to their project dependencies (npm install package-name for example). I guess when uploading a spell or system you can simply explain that in the installation instructions.

For people who are interested in how this works, you can take a look at the Warcraft III TypeScript Template: cipherxof/wc3-ts-template
 
Last edited:
Status
Not open for further replies.
Top