@arnaud-barre/tnode
v0.24.0
Published
Simple node wrapper that runs esbuild on TS files for ESM projects
Downloads
365
Maintainers
Readme
tnode
Simple node wrapper that runs esbuild on TS files for ESM projects. Requires usage of explicit extensions. esbuild target is set to node 18.
For CJS projects, see @nabla/tnode
Install
npm i -D @arnaud-barre/tnode
Usage in package.json scripts
{
"scripts": {
"codegen": "tnode scripts/codegen.ts"
}
}
JSON imports
A loader is provided to bypassed experimental warning and the need for import assertion. There is no support for named exports.
Credit
preflight.cjs
& tnode.cjs
is taken from tsx