Skip to content

Commit

Permalink
feat(git-validator): make formatter logger more silent
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed May 4, 2024
1 parent 908acab commit dccb700
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-rings-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"git-validator": patch
---

feat(git-validator): make formatter logger more silent
6 changes: 4 additions & 2 deletions packages/git-validator/src/command/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@ export async function format(paths = [], options = {}) {
(await resolveConfig("prettier"))?.filepath ??
requireResolve("@git-validator/prettier-config");

console.log("Checking formatting...");
const child = childProcess.spawn(
"node",
[
path.join(dir(import.meta.url), "..", "bin", "prettier.js"),
"--check",
"--log-level",
"warn",
...ignores,
"--config",
configPath,
...(shouldWrite ? ["--write"] : []),
...(shouldWrite ? ["--write"] : ["--check"]),
...ps,
],
{ stdio: "inherit" },
Expand Down

0 comments on commit dccb700

Please sign in to comment.