How to speedup the warm-up time of ts-node? #1276
Replies: 2 comments 24 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.
-
getting |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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