From 3822636275f365797d42423dcd53a6b5d383575e Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Mon, 15 Jun 2026 14:25:53 +0200 Subject: [PATCH] Output the actual command for triggering prettier -w --- knip.ts | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/knip.ts b/knip.ts index 3c06f97d4..50e3766ad 100644 --- a/knip.ts +++ b/knip.ts @@ -17,6 +17,8 @@ export default { // installed binary. TODO We should switch to Compose v2: // https://docs.docker.com/compose/migrate/ "docker-compose", + // Shell builtin, not a binary + "printf", ], ignoreFiles: ["scripts/.pnpmfile.cjs"], ignoreDependencies: [ diff --git a/package.json b/package.json index 01f77d0ff..b94b82dac 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "build:sdk": "pnpm build:full --config vite-sdk.config.js", "build:sdk:production": "pnpm build:sdk", "serve": "vite preview", - "prettier:check": "prettier -c .", + "prettier:check": "prettier -c .; EC=$?; [ $EC -ne 0 ] && printf '[\\033[33mwarn\\033[0m] To fix, run: pnpm run prettier:format\\n' >&2; exit $EC", "prettier:format": "prettier -w .", "lint": "pnpm lint:types && pnpm lint:eslint && pnpm lint:knip", "lint:eslint": "eslint --max-warnings 0 src playwright",