@arnaud-barre/tnode

0.24.0 • 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

23

Version

0.24.0

License

MIT

Unpacked Size

4.29 kB

Total Files

6

Last publish

Collaborators

  • arnaud-barre