Skip to content

Commit ee3e37a

Browse files
committedJul 13, 2022
rebuild readme
1 parent 604b2aa commit ee3e37a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1057,14 +1057,18 @@ These tricks will make ts-node faster.
10571057

10581058
## Skip typechecking
10591059

1060-
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.
1060+
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.
1061+
1062+
To skip typechecking in ts-node, do one of the following:
10611063

10621064
* Enable [swc](#swc)
10631065
* This is by far the fastest option
10641066
* Enable [`transpileOnly`](#transpileonly) to skip typechecking without swc
10651067

10661068
## With typechecking
10671069

1070+
If you absolutely must typecheck in ts-node:
1071+
10681072
* Avoid dynamic `require()` which may trigger repeated typechecking; prefer `import`
10691073
* Try with and without `--files`; one may be faster depending on your project
10701074
* Check `tsc --showConfig`; make sure all executed files are included

0 commit comments

Comments
 (0)
Please sign in to comment.