Fix the bug that windows reports errors when packaged in other drive letters
This commit is contained in:
3
bin/utils/shell.ts
vendored
3
bin/utils/shell.ts
vendored
@@ -1,8 +1,9 @@
|
|||||||
import shelljs from "shelljs";
|
import shelljs from "shelljs";
|
||||||
|
import { npmDirectory } from "./dir.js";
|
||||||
|
|
||||||
export function shellExec(command: string) {
|
export function shellExec(command: string) {
|
||||||
return new Promise<number>((resolve, reject) => {
|
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) {
|
if (code === 0) {
|
||||||
resolve(0);
|
resolve(0);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
3960
dist/cli.js
vendored
3960
dist/cli.js
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user