From 2bd0f5590b5b419c21ab32cf039975dcc084408d Mon Sep 17 00:00:00 2001 From: Anton Kastritskiy Date: Thu, 25 Jul 2024 03:40:06 -0700 Subject: [PATCH] remove remaining ts-node usage Reviewed By: lblasa Differential Revision: D60121962 fbshipit-source-id: fb069ed14a9c7457dbdbe28b6d06de4ba9140c6f --- desktop/.vscode/launch.json | 4 ++-- desktop/package.json | 1 - desktop/ts-node | 7 ------- 3 files changed, 2 insertions(+), 10 deletions(-) delete mode 100755 desktop/ts-node diff --git a/desktop/.vscode/launch.json b/desktop/.vscode/launch.json index ce0914950a9..5ccba2c64ef 100644 --- a/desktop/.vscode/launch.json +++ b/desktop/.vscode/launch.json @@ -41,11 +41,11 @@ "name": "Launch Current Script", "args": ["${file}"], "env": { - "TS_NODE_FILES": "true" + "NODE_OPTIONS": "--import tsx" }, "protocol": "inspector", "internalConsoleOptions": "openOnSessionStart", - "runtimeArgs": ["--require", "ts-node/register"] + "runtimeArgs": [] }, { "type": "node", diff --git a/desktop/package.json b/desktop/package.json index eb3280490a2..d3feca18cb3 100644 --- a/desktop/package.json +++ b/desktop/package.json @@ -100,7 +100,6 @@ "pretty-format": "^29.7.0", "rimraf": "^3.0.2", "ts-jest": "^29.2.3", - "ts-node": "^10.9.1", "tsx": "^4.15.7", "typescript": "^5.4.2" }, diff --git a/desktop/ts-node b/desktop/ts-node deleted file mode 100755 index 1f47c32b4c8..00000000000 --- a/desktop/ts-node +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -# Copyright (c) Meta Platforms, Inc. and 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 TS_NODE_PROJECT=scripts/tsconfig.json node --max_old_space_size=4096 --require ts-node/register "$@"