fix: tsx cli (#3254)
This commit is contained in:
parent
0330e33704
commit
cc2b132aa1
@ -58,7 +58,8 @@ exports.nodeCheck = () => {
|
|||||||
|
|
||||||
exports.run = (command, args, options = {}) => {
|
exports.run = (command, args, options = {}) => {
|
||||||
if (command === 'tsx') {
|
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, {
|
return execa(command, args, {
|
||||||
shell: true,
|
shell: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user