From 599d6aa829351dabb7c02876084f7b12c5bda405 Mon Sep 17 00:00:00 2001 From: kirillgroshkov Date: Sat, 10 Aug 2024 18:56:31 +0200 Subject: [PATCH] fix: exclude try.ts from biome --- cfg/biome.jsonc | 2 +- src/lint.util.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cfg/biome.jsonc b/cfg/biome.jsonc index 2f44452..70c9961 100644 --- a/cfg/biome.jsonc +++ b/cfg/biome.jsonc @@ -1,7 +1,7 @@ { "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", "files": { - "ignore": ["**/__exclude", "*.compact.json"] + "ignore": ["**/__exclude", "**/try.ts", "*.compact.json"] }, "formatter": { "enabled": true, diff --git a/src/lint.util.ts b/src/lint.util.ts index be8cdc4..460336b 100644 --- a/src/lint.util.ts +++ b/src/lint.util.ts @@ -331,7 +331,7 @@ export function runBiome(verbose = false, fix = true): void { function canRunBinary(name: string): boolean { try { - execSync(`which ${name}`) + cp.execSync(`which ${name}`) return true } catch { return false