mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-17 12:56:41 +02:00
Apply suggestion from @greptile-apps[bot]
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
@@ -71,8 +71,11 @@ export const prettier: Info = {
|
|||||||
devDependencies?: Record<string, string>
|
devDependencies?: Record<string, string>
|
||||||
}>(item)
|
}>(item)
|
||||||
if (json.dependencies?.prettier || json.devDependencies?.prettier) {
|
if (json.dependencies?.prettier || json.devDependencies?.prettier) {
|
||||||
return [await Npm.which("prettier"), "--write", "$FILE"]
|
if (json.dependencies?.prettier || json.devDependencies?.prettier) {
|
||||||
}
|
const bin = await Npm.which("prettier").catch(() => null)
|
||||||
|
if (!bin) return false
|
||||||
|
return [bin, "--write", "$FILE"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user