@defold-typescript/cli
v0.11.1
Published
End-user CLI for scaffolding and building Defold projects written in TypeScript.
Downloads
2,984
Readme
defold-typescript
The end-user CLI for scaffolding and building Defold projects written in TypeScript, transpiled to Lua.
bunx @defold-typescript/cli@latest init . # add TypeScript to the Defold project here (use a path to scaffold a new one)
bun install # install the scaffolded devDependencies (types, biome)
bunx @defold-typescript/cli build # transpile src/ to Lua alongside your Defold sources
bunx @defold-typescript/cli watch # rebuild on changeScaffold with the @latest tag — init writes your @defold-typescript/types
version pin, so a stale bunx cache would pin an older release. Run bun install
once after init to put the scaffolded dev dependencies on disk.
The package name is scoped (@defold-typescript/cli); bunx defold-typescript
without the scope resolves a different, nonexistent package. Install it to get
the shorter defold-typescript binary on your PATH and pin the version:
npm i -D @defold-typescript/cli # then: bunx defold-typescript <command>See the repository README
and packages/docs/guide/
for the full workflow.
License
MIT
