Skip to content

Commit

Permalink
Merge pull request #108 from ArsArmandi/patch-1
Browse files Browse the repository at this point in the history
Update indexHelpers.js
  • Loading branch information
RSeidelsohn authored May 24, 2024
2 parents 3918843 + bf950fc commit 17dc75e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/indexHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ const storeReadmeInJsonIfExists = (modulePath, currentExtendedPackageJson) => {
typeof modulePath !== 'string' ||
typeof currentExtendedPackageJson !== 'object' ||
modulePath === '' ||
currentExtendedPackageJson?.readme?.toLowerCase()?.indexOf('no readme data found') === -1
(typeof currentExtendedPackageJson?.readme === 'string' &&
currentExtendedPackageJson?.readme?.toLowerCase()?.indexOf('no readme data found') === -1)
) {
return;
}
Expand Down

0 comments on commit 17dc75e

Please sign in to comment.