Skip to content

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

License

Notifications You must be signed in to change notification settings

endel/cli-binary-load-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published