Skip to content

Commit c474e82

Browse files
authored
Update run.md (nodejs#7466)
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]>
1 parent 2bbe0fe commit c474e82

File tree

1 file changed

+1
-1
lines changed
  • apps/site/pages/en/learn/typescript

1 file changed

+1
-1
lines changed

apps/site/pages/en/learn/typescript/run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In the previous article, we learned how to run TypeScript code using transpilati
1010

1111
## Running TypeScript code with `ts-node`
1212

13-
[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.
13+
[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.
1414

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

0 commit comments

Comments
 (0)