Skip to content

Commit

Permalink
and another one
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jul 7, 2024
1 parent 5822e8f commit 6ed5824
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/tools/src/YarnTool.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import path from "path";
import fs from "fs";

import {
Tool,
Expand Down Expand Up @@ -93,9 +92,7 @@ export const YarnTool: Tool = {
const rootDir = path.resolve(directory);

try {
const pkgJson = JSON.parse(fs.readFileSync(
path.join(rootDir, "package.json")
).toString()) as YarnPackageJSON;
const pkgJson = readJsonSync(rootDir, "package.json") as YarnPackageJSON;
const packageGlobs: string[] = Array.isArray(pkgJson.workspaces)
? pkgJson.workspaces
: pkgJson.workspaces!.packages;
Expand Down

0 comments on commit 6ed5824

Please sign in to comment.