pull/18380/head
Dax Raad 2026-03-19 23:37:00 -04:00
parent e48da96886
commit 3b669e7f2b
1 changed files with 4 additions and 5 deletions

View File

@ -71,11 +71,10 @@ export const prettier: Info = {
devDependencies?: Record<string, string>
}>(item)
if (json.dependencies?.prettier || json.devDependencies?.prettier) {
if (json.dependencies?.prettier || json.devDependencies?.prettier) {
const bin = await Npm.which("prettier").catch(() => null)
if (!bin) return false
return [bin, "--write", "$FILE"]
}
const bin = await Npm.which("prettier").catch(() => null)
if (!bin) return false
return [bin, "--write", "$FILE"]
}
}
return false
},