Files
flipper/desktop/ts-node.cmd
Anton Nikolaev 5dc3ab4ea2 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
2020-04-01 02:52:01 -07:00

9 lines
270 B
Batchfile

@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 %*