Skip to content

Commit

Permalink
chore: fix any type lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed Jun 6, 2024
1 parent 20ae135 commit 507dc82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/turbo-ignore/src/getTurboVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export function getTurboVersion(
const turboJSONPath = path.join(root, "turbo.json");
try {
const rawTurboJson = fs.readFileSync(turboJSONPath, "utf8");
const turboJson = JSON5Parse(rawTurboJson);
const turboJson: { tasks?: unknown; pipeline?: unknown } =
JSON5Parse(rawTurboJson);
if ("tasks" in turboJson) {
info(`Inferred turbo version ^2 based on "tasks" in "turbo.json"`);
return "^2";
Expand Down

0 comments on commit 507dc82

Please sign in to comment.