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
npm i -D @arnaud-barre/tnode
{
"scripts": {
"codegen": "tnode scripts/codegen.ts"
}
}
A loader is provided to bypassed experimental warning and the need for import assertion. There is no support for named exports.
preflight.cjs
& tnode.cjs
is taken from tsx