diff --git a/helpers/repo-data.mjs b/helpers/repo-data.mjs index 78767fb6..fb056d03 100644 --- a/helpers/repo-data.mjs +++ b/helpers/repo-data.mjs @@ -68,7 +68,7 @@ export class RepoData { console.log('govuk-prototype-kit' in packageObject.dependencies) return this.repoTree.data.tree.some((file) => file.path == 'lib/usage_data.js') || - (packageObject?.dependencies && + (packageObject.dependencies && 'govuk-prototype-kit' in packageObject.dependencies) }