tstmlog is a TypeScript-to-Mindustry Logic (mlog) compiler and transpiler (v0.1.1). It allows developers to write Mindustry processor code in TypeScript and compile it to .mlog files. As a minimal release, it focuses core translation rather than full feature parity. It uses the TypeScript compiler API and ships its own type definitions.
npm install tstmlogNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles a simple TypeScript snippet to mlog using tstmlog in an ESM environment.
Install TypeScript as a dependency: 'npm install typescript'
Use import instead of require. Ensure package.json contains \"type\": \"module\" or use .mjs extension.
Refer to documentation for supported TypeScript constructs; avoid advanced features like classes, generics, async/await.
Use 'target' instead of 'output' when specifying mlog version.
Change to import syntax or configure your project as ESM.
Run 'npm install typescript' or add it to your project's dependencies.
Set \"type\": \"module\" in package.json or rename file to .mjs.