cli-binary-load-typescript

1.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i cli-binary-load-typescript

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

5.3 kB

Total Files

5

Last publish

Collaborators

  • endel