1.4.0 • Published 9 months ago

tesm-node v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

!CAUTION This project has been deprecated in favor of tsx and will no longer be maintained.

tesm-node

A thin wrapper around ts-node-esm that adds support for tsconfig-paths and importing files without file extensions when developing in TypeScript with ESM.

Install

# Locally in your project
npm i -D typescript ts-node tesm-node

# Or globally
npm i -g typescript ts-node tesm-node

# If using tsconfig paths
npm i -D tsconfig-paths

# Depending on configuration, you may also need types
npm i -D @types/node

Usage

Because this is just a wrapper around ts-node, it retains nearly all of it's API. Just replace ts-node with tesm-node.

# Basic usage.
tesm-node src/script.ts

# With tsconfig-paths
tesm-node src/script

# With the loader flag
node --loader tesm-node script.ts
1.4.0

9 months ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago