diff --git a/README.md b/README.md index a08d36481..63625d5ee 100644 --- a/README.md +++ b/README.md @@ -1057,7 +1057,9 @@ These tricks will make ts-node faster. ## Skip typechecking -It is often better to use `tsc --noEmit` to typecheck as part of your tests or linting. In these cases, ts-node can skip typechecking. +It is often better to typecheck as part of your tests or linting. You can run `tsc --noEmit` to do this. In these cases, ts-node can skip typechecking, making it much faster. + +To skip typechecking in ts-node, do one of the following: * Enable [swc](#swc) * This is by far the fastest option @@ -1065,6 +1067,8 @@ It is often better to use `tsc --noEmit` to typecheck as part of your tests or l ## With typechecking +If you absolutely must typecheck in ts-node: + * Avoid dynamic `require()` which may trigger repeated typechecking; prefer `import` * Try with and without `--files`; one may be faster depending on your project * Check `tsc --showConfig`; make sure all executed files are included