Simple node wrapper that runs esbuild on TS files.
npm i -D @nabla/tnode
- For
esbuild@0.17
use@nabla/tnode@0.9
(latest) - For
esbuild@0.16
use@nabla/tnode@0.8
- For
esbuild@0.15
use@nabla/tnode@0.7
{
"scripts": {
"codegen": "tnode scripts/codegen.ts"
}
}
Add in package.json
{
"jest": {
"rootDir": "src",
"transform": {
"\\.ts": "@nabla/tnode/jest"
}
}
}
npm i -g @nabla/tnode
#!/usr/bin/env tnode
console.log("It just works!");