-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Update run.md #7466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update run.md #7466
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
what is the pref cost of this |
|
I didn’t notice any delay during execution, and I’m not using a
supercomputer—just a decent MacBook Pro. However, if performance is a
concern (e.g., for production or fast iteration cycles), enabling the
transpileOnly flag (ts-node --transpile-only) can speed up execution by
skipping type checking. However, this means that type errors won’t be
caught at runtime
…On Sun, Feb 2, 2025 at 4:48 PM Augustin Mauroy ***@***.***> wrote:
what is the pref cost of this ts-node feature ? if it's affect pref we
should mention it
—
Reply to this email directly, view it on GitHub
<#7466 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK54BNVW7RCUVARCXOZHQVL2N2HDRAVCNFSM6AAAAABWKZIZF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMRZGU3TAOJTGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
ovflowd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM although this content should be updated -- cc @marco-ippolito
|
Lighthouse Results
|
|
@ovflowd reminder, code review comments in progress? |
Description
This PR updates the documentation to clarify that
ts-nodeperforms type checking by default unlesstranspileOnlyis enabled.The previous documentation suggested that
ts-nodedoes not perform type checking. However, testing confirms that it does type checking unlesstranspileOnlyis explicitly enabled.Validation
Running
ts-node example.tsresults in:ts-node -voutput:This confirms that
ts-nodeperforms type checking by default in this version.