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 "$@"