Skip to content

Commit 7fe6269

Browse files
committed
[INTERNAL] npm t8r: Handle projects with explicitly zero UI5 dependencies
1 parent 25454d3 commit 7fe6269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/translators/npm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class NpmTranslator {
6262
}
6363

6464
const ui5Deps = pkg.ui5 && pkg.ui5.dependencies;
65-
if (ui5Deps && ui5Deps.length) {
65+
if (ui5Deps && Array.isArray(ui5Deps)) {
6666
for (let i = 0; i < ui5Deps.length; i++) {
6767
const depName = ui5Deps[i];
6868
if (!dependencies[depName] && !optDependencies[depName]) {

0 commit comments

Comments
 (0)