From cc2b132aa110c23d5d0bb0068beecbe246105671 Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 25 Dec 2023 15:03:48 +0800 Subject: [PATCH] fix: tsx cli (#3254) --- packages/core/cli/src/util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/cli/src/util.js b/packages/core/cli/src/util.js index 89d04b05e..8c4d51fab 100644 --- a/packages/core/cli/src/util.js +++ b/packages/core/cli/src/util.js @@ -58,7 +58,8 @@ exports.nodeCheck = () => { exports.run = (command, args, options = {}) => { if (command === 'tsx') { - command = resolve(process.cwd(), './node_modules/tsx/dist/cli.mjs'); + command = 'node'; + args = ['./node_modules/tsx/dist/cli.mjs'].concat(args || []); } return execa(command, args, { shell: true,