Simple node wrapper that runs esbuild on TS files.
npm i -D @nabla/tnode
- For
[email protected]
use@nabla/[email protected]
(latest) - For
[email protected]
use@nabla/[email protected]
- For
[email protected]
use@nabla/[email protected]
{
"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!");