Skip to content

Commit

Permalink
fix: provide support for packages when dependencies do not exist …
Browse files Browse the repository at this point in the history
…(package-lock v3) (#104)

* Update version

* Update CHANGELOG.md

* lockfilev1 tree.js fix

* work with node 12

* revert changelog.md
  • Loading branch information
ryndh authored Apr 29, 2024
1 parent a7d2d9b commit 5696017
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lockfileV1/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const {

module.exports = {
buildYarnTree (nodeModulesTree, packageLock) {
const flattenedPackageLock = flattenPackageLock(packageLock.dependencies)
const flattenedPackageLock = flattenPackageLock(packageLock.dependencies || packageLock.packages)
const tree = Object.keys(nodeModulesTree).reduce((tree, path) => {
const nmEntry = nodeModulesTree[path]
const { name } = nmEntry
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "synp",
"version": "1.9.10",
"version": "1.9.11",
"description": "Convert yarn.lock to package-lock.json and vice versa",
"keywords": [
"yarn",
Expand Down

0 comments on commit 5696017

Please sign in to comment.