fixup some bug for pake-cli

This commit is contained in:
Pake-Actions
2023-04-11 10:33:28 +08:00
parent 26a008ad89
commit 7653eb77ed
4 changed files with 2294 additions and 2302 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 {