fixup some bug for pake-cli
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 { 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 {
|
||||
|
||||
Reference in New Issue
Block a user