项目文件夹

文件
T
2024-12-19 20:39:31 +08:00

23 行
543 B
TypeScript

#!/usr/bin/env zx
import { $, echo } from "zx";
import type { ProcessOutput } from "zx";
import { printObject } from "./utils";
$.verbose = true;
if (process.platform === "win32") {
$.prefix = "";
$.shell = "pwsh.exe";
}
echo("开始执行代码质量评估...\n");
// await $`pnpm spellcheck`.catch((out: ProcessOutput) => {
// printObject(out);
// throw new Error(out.stdout);
// });
// check type and stage
await Promise.all([$`pnpm types`]).catch((out: ProcessOutput) => {
printObject(out);
throw new Error(out.stdout);
});