Skip to content

Commit

Permalink
Update run.md
Browse files Browse the repository at this point in the history
This PR updates the documentation to clarify that `ts-node` performs type checking by default unless `transpileOnly` is enabled.

Signed-off-by: ℵi✗✗ <[email protected]>
  • Loading branch information
justnixx authored Feb 2, 2025
1 parent 837a461 commit 0dc4a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/site/pages/en/learn/typescript/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ In the previous article, we learned how to run TypeScript code using transpilati

## Running TypeScript code with `ts-node`

[ts-node](https://typestrong.org/ts-node/) is a TypeScript execution environment for Node.js. It allows you to run TypeScript code directly in Node.js without the need to compile it first. Note, however, that it does not type check your code. So we recommend to type check your code first with `tsc` and then run it with `ts-node` before shipping it.
[ts-node](https://typestrong.org/ts-node/) is a TypeScript execution environment for Node.js. It allows you to run TypeScript code directly in Node.js without the need to compile it first. By default, `ts-node` performs type checking unless `transpileOnly` is enabled. While `ts-node` can catch type errors at runtime, we still recommend type-checking your code first with `tsc` before shipping it.

To use `ts-node`, you need to install it first:

Expand Down

0 comments on commit 0dc4a90

Please sign in to comment.