Ops: naprawa format --check api w fitos (prettier wywolywany wprost, bez doklejania argumentow do npm run)
This commit is contained in:
@@ -178,9 +178,12 @@ def cmd_lint(packages: list[str], fix: bool = False) -> int:
|
||||
def cmd_format(packages: list[str], check_only: bool = False) -> int:
|
||||
steps = []
|
||||
for p in packages:
|
||||
if check_only and p == "api":
|
||||
steps.append((f"format {p}", ["npx", "prettier", "--check", "src", "prisma"], REPO_ROOT / p))
|
||||
continue
|
||||
args = ["npm", "run", "format"]
|
||||
if check_only:
|
||||
args += ("--", "--check") if p != "api" else ["npx", "prettier", "--check", "src", "prisma"]
|
||||
args += ["--", "--check"]
|
||||
steps.append((f"format {p}", args, REPO_ROOT / p))
|
||||
return 0 if run_all(steps) else 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user