@arnaud-barre/tnode

0.19.2 • Public • Published

tnode npm

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

Package Sidebar

Install

npm i @arnaud-barre/tnode

Weekly Downloads

53

Version

0.19.2

License

MIT

Unpacked Size

4.29 kB

Total Files

6

Last publish

Collaborators

  • arnaud-barre