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,