1.0.1 • Published 6 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-nodeGlobal installation:
npm install -g @quentinadam/tsc-nodeUsage
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.tsThe handler can also be registered to the node binary.
node -r @quentinadam/tsc-node script.ts