Based on commit 0140808d7109ebc111351fda84fc4c8246ac6203
lines 129 and 137 of src/index.js
should be changed into
Object.keys(pkgContent.dependencies || {}).forEach((name) => {
and
Object.keys(pkgContent.devDependencies || {}).forEach((name) => {
respectively.
In other words, add || {} when accessing dependencies and devDependencies, as you already do it on line 67.
Based on commit 0140808d7109ebc111351fda84fc4c8246ac6203 lines 129 and 137 of src/index.js should be changed into Object.keys(pkgContent.dependencies || {}).forEach((name) => { and Object.keys(pkgContent.devDependencies || {}).forEach((name) => { respectively. In other words, add || {} when accessing dependencies and devDependencies, as you already do it on line 67.