From 0dc4a90ffe5936e7a0bbe129742fc909989925ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=84=B5i=E2=9C=97=E2=9C=97?= <45858998+justnixx@users.noreply.github.com> Date: Sun, 2 Feb 2025 16:12:23 -0500 Subject: [PATCH] Update run.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR updates the documentation to clarify that `ts-node` performs type checking by default unless `transpileOnly` is enabled. Signed-off-by: ā„µiāœ—āœ— <45858998+justnixx@users.noreply.github.com> --- apps/site/pages/en/learn/typescript/run.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/site/pages/en/learn/typescript/run.md b/apps/site/pages/en/learn/typescript/run.md index b3404b1c45566..15e7869ae6ef2 100644 --- a/apps/site/pages/en/learn/typescript/run.md +++ b/apps/site/pages/en/learn/typescript/run.md @@ -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: