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.
- Host: GitHub
- URL: https://github.com/endel/cli-binary-load-typescript
- Owner: endel
- License: mit
- Created: 2023-10-22T14:36:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-22T14:58:39.000Z (over 2 years ago)
- Last Synced: 2025-06-08T21:57:07.837Z (about 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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