fix: incorrect tsx version on windows

This commit is contained in:
chenos 2023-12-23 15:27:11 +08:00
parent e112a644ea
commit e4c97651bf
2 changed files with 3 additions and 7 deletions

View File

@ -57,6 +57,9 @@ exports.nodeCheck = () => {
};
exports.run = (command, args, options = {}) => {
if (command === 'tsx') {
command = resolve(process.cwd(), './node_modules/tsx/dist/cli.mjs');
}
return execa(command, args, {
shell: true,
stdio: 'inherit',

View File

@ -10211,13 +10211,6 @@ cron-parser@4.4.0:
dependencies:
luxon "^1.28.0"
cron-parser@^4.6.0:
version "4.9.0"
resolved "https://registry.npmmirror.com/cron-parser/-/cron-parser-4.9.0.tgz#0340694af3e46a0894978c6f52a6dbb5c0f11ad5"
integrity sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q==
dependencies:
luxon "^3.2.1"
cron@*:
version "3.1.6"
resolved "https://registry.npmmirror.com/cron/-/cron-3.1.6.tgz#e7e1798a468e017c8d31459ecd7c2d088f97346c"