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
8 lines
259 B
Bash
Executable File
8 lines
259 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
env TS_NODE_TRANSPILE_ONLY=true node --require ts-node/register "$@"
|