
builddir = .ninja

outdir = ./output
jsdir = $outdir/js

rule tsc
  command = node_modules/.bin/tsc

build $outdir/index.js: tsc | index.ts tsconfig.json

rule run
  command = node $in

build run: run $outdir/index.js
  pool = console
