From ea0c548788c8e89cd35a2250c2abe97b5bd04e9b Mon Sep 17 00:00:00 2001 From: Joris Buchou Date: Tue, 25 Aug 2026 12:11:35 -0700 Subject: [PATCH] chore: fix the prettier format glob to target .ts sources `format` was `prettier --write 'src/**/*.js'`, but this is a TypeScript repo with no .js sources under src/. Prettier treats an unmatched pattern as an error, so `pnpm format` failed with exit code 2: [error] No files matching the pattern were found: "src/**/*.js". Pointing the glob at 'src/**/*.ts' matches the six real sources and mirrors what .restyled.yaml already enforces. No reformat resulted -- all six files report "(unchanged)". Found by the Dead Weight audit of Freckle JS/TS repos. Co-Authored-By: Claude Opus 5 (1M context) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0f3cfa2..712d551 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "scripts": { "build": "tsc -p tsconfig.build.json -d", "test": "vitest run", - "format": "prettier --write 'src/**/*.js'", + "format": "prettier --write 'src/**/*.ts'", "check-git-clean": "./check-git-clean.sh" }, "dependencies": {