Neptune's Personal Maid

    @nabla/tnode

    0.6.0 • Public • Published

    tnode

    Simple node wrapper that runs esbuild on TS files

    Install

    npm i -D @nabla/tnode

    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!");

    Install

    npm i @nabla/tnode

    DownloadsWeekly Downloads

    61

    Version

    0.6.0

    License

    MIT

    Unpacked Size

    3.12 kB

    Total Files

    6

    Last publish

    Collaborators

    • pierre127
    • martinraison