Faster script execution by ts-node
Summary: It takes few seconds for ts-node to start even for small scripts. TS_NODE_TRANSPILE_ONLY env var makes loading much faster ~100-200ms. Reviewed By: mweststrate Differential Revision: D20769639 fbshipit-source-id: 9b09a4e128e6b9c9651de98d8193b1d3a8f42b64
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3bdfea387b
commit
5dc3ab4ea2
8
desktop/ts-node.cmd
Normal file
8
desktop/ts-node.cmd
Normal file
@@ -0,0 +1,8 @@
|
||||
@REM Copyright (c) Facebook, Inc. and its affiliates.
|
||||
@REM
|
||||
@REM This source code is licensed under the MIT license found in the
|
||||
@REM LICENSE file in the root directory of this source tree.
|
||||
|
||||
@echo off
|
||||
|
||||
set TS_NODE_TRANSPILE_ONLY=true & node --require ts-node/register %*
|
||||
Reference in New Issue
Block a user