@nabla/tnode
v0.9.0
Published
Simple node wrapper that runs esbuild on TS files
Downloads
2,016
Readme
tnode
Simple node wrapper that runs esbuild on TS files.
Install
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]
Usage in package.json scripts
{
"scripts": {
"codegen": "tnode scripts/codegen.ts"
}
}
Usage with Jest
Add in package.json
{
"jest": {
"rootDir": "src",
"transform": {
"\\.ts": "@nabla/tnode/jest"
}
}
}
Usage in independent scripts
npm i -g @nabla/tnode
#!/usr/bin/env tnode
console.log("It just works!");