cli-binary-load-typescript
v1.0.4
Published
This is just a PoC evaluating how to dynamically load a TypeScript file from a executable Node.js binary.
Downloads
4
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)
This is highly based on @acro5piano's approach on kysely-migration-cli
Installation
npm install
npm run build
Usage
Execute providing the TypeScript file to load
./bin/bin.js ./testfile.ts
License
MIT