1.0.1 • Published 5 years ago
@quentinadam/tsc-node v1.0.1
@quentinadam/tsc-node
TypeScript execution for node.js, that will build the project and run the compiled javascript files.
Installation
Local installation:
npm install -D @quentinadam/tsc-node
Global installation:
npm install -g @quentinadam/tsc-node
Usage
Executing a script with tsc-node
will be equivalent to running tsc -b
in the current directory to compile the whole TypeScript project (works with project references) and running the compiled .js
file with node
.
tsc-node script.ts
The handler can also be registered to the node binary.
node -r @quentinadam/tsc-node script.ts