How to speedup the warm-up time of ts-node? #1276
sebastianrath
started this conversation in
General
Replies: 1 comment 21 replies
-
Are you using The website linked below is still a work-in-progress, but this page explains configuration: Remember that many people believe ts-node must do typechecking, but this is usually not true. It is actually better to use |
Beta Was this translation helpful? Give feedback.
21 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am using ts-node in the repo SnowFS.
SnowFS is a command-line application written in TypeScript and during unit-tests, I use a batch/shell script to verify the functionality of the program, as sketched below.
On Windows: snowfs.bat
On macOS and Linux: snowfs
As you can see from the sketch above, several tests execute snow.bat which uses ts-node. Every single call fires up
ts-node
. I found several posts and questions about the warmup time of ts-node, but most of them are outdated. What would be the most current way to speedup the warm-up time otts-node
?As you can see, the unit-tests take very long, for just a few calls (full log here)
Any help is highly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions