fix: tsx cli (#3254)

This commit is contained in:
chenos 2023-12-25 15:03:48 +08:00 committed by GitHub
parent 0330e33704
commit cc2b132aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,