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 change
脚手架与 @latest 标签 - init 写你的 @defold-typescript/types
版针,所以僵化 bunx 缓存会把旧的发行套上 运行 bun install
之后一次 init 将脚手架的 dev 依赖性放入磁盘.