Skip to content

Commit

Permalink
fix: add info debug log and format test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
gemaxim committed Jul 23, 2024
1 parent 2cf2eee commit 96ce653
Show file tree
Hide file tree
Showing 17 changed files with 2,716 additions and 2,723 deletions.
7 changes: 3 additions & 4 deletions lib/dep-graph-builders/pnpm/parse-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,9 @@ export const parsePnpmWorkspace = async (

for (const importer of Object.keys(lockFileParser.importers)) {
const resolvedImporterPath = path.join(workspaceDir, importer);
const pkgJsonFile = getFileContents(
root,
path.join(resolvedImporterPath, 'package.json'),
);
const packagePath = path.join(resolvedImporterPath, 'package.json');
debug(`Processing project ${packagePath} as part of a pnpm workspace`);
const pkgJsonFile = getFileContents(root, packagePath);

const pkgJson: PackageJsonBase = parsePkgJson(pkgJsonFile.content);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "package-c",
"dependencies": {
"body-parser": "1.20.0"
}
"name": "package-c",
"dependencies": {
"body-parser": "1.20.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1064,4 +1064,4 @@
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "package-c",
"version": "1.0.0",
"dependencies": {
"body-parser": "1.20.0"
}
"name": "package-c",
"version": "1.0.0",
"dependencies": {
"body-parser": "1.20.0"
}
}
Loading

0 comments on commit 96ce653

Please sign in to comment.