@shqld/ts-node

Let's use babel-node for TypeScript as easy as ts-node.

Usage no npm install needed!

<script type="module">
  import shqldTsNode from 'https://cdn.skypack.dev/@shqld/ts-node';
</script>

README

ts-node with Babel.

Let's use babel-node for TypeScript as easy as ts-node.

NOTE: this is just a small wrapper for babel-node and only resolves verbose arguments passed to babel-node. See the core /ts-node.sh.

Install

npm i -D @shqld/ts-node
yarn add -D @shqld/ts-node

Usage

{
  "scripts": {
    "do-task": "ts-node tasks/some-task.ts"
  },
  "devDepedencies": {
    "@babel/core": "7.x",
    "@babel/preset-typescript": "7.x",
    "@shqld/ts-node": "1.x"
  }
}
npx do-task
yarn do-task