An open API service indexing awesome lists of open source software.

https://github.com/endel/cli-binary-load-typescript

This is just a PoC evaluating how to dynamically load a TypeScript file from a executable Node.js binary.
https://github.com/endel/cli-binary-load-typescript

Last synced: 11 months ago
JSON representation

This is just a PoC evaluating how to dynamically load a TypeScript file from a executable Node.js binary.

Awesome Lists containing this project

README

          

# Loading TypeScript file from executable CLI

This is just a PoC evaluating how to dynamically load a TypeScript file from a
executable Node.js binary. (Meant to be used on [colyseus/colyseus#594](https://github.com/colyseus/colyseus/issues/594))

> This is highly based on [@acro5piano](https://github.com/acro5piano)'s
> approach on [kysely-migration-cli](https://github.com/acro5piano/kysely-migration-cli)

---

### Installation

```
npm install
npm run build
```

### Usage

Execute providing the TypeScript file to load

```
./bin/bin.js ./testfile.ts
```

### License

MIT