Skip to content

Commit afa0367

Browse files
committed
🔧chore(core): 修复执行脚本
1 parent 39ceed6 commit afa0367

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/lint-script.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import { eslintFix } from "@/command/eslint-fix";
22
import { prettierFormat } from "@/command/prettier-format";
3-
import { execCommand, loggerWarring } from "@/shared";
3+
import { execCommand, printError } from "@/shared";
44

55
async function lint() {
66
try {
77
await prettierFormat(["./src/", "./scripts/"]);
8-
await execCommand("git", ["add", "."]);
8+
await execCommand("git", ["add", "."], {
9+
stdio: "inherit",
10+
});
911
await eslintFix(["./src/", "./scripts/"]);
1012
} catch (error) {
11-
loggerWarring(error);
13+
printError(error);
1214
}
1315
}
1416

0 commit comments

Comments
 (0)