Fix the bug that windows reports errors when packaged in other drive letters

This commit is contained in:
Tlntin
2023-01-27 08:42:35 +08:00
parent 3bc968e184
commit 63bd9036ca
2 changed files with 1982 additions and 1981 deletions

3
bin/utils/shell.ts vendored
View File

@@ -1,8 +1,9 @@
import shelljs from "shelljs";
import { npmDirectory } from "./dir.js";
export function shellExec(command: string) {
return new Promise<number>((resolve, reject) => {
shelljs.exec(command, { async: true, silent: false }, (code) => {
shelljs.exec(command, { async: true, silent: false, cwd: npmDirectory }, (code) => {
if (code === 0) {
resolve(0);
} else {

3960
dist/cli.js vendored

File diff suppressed because it is too large Load Diff