Skip to content

Commit

Permalink
[FIX] framework t8r: Allow use of specVersion 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed May 11, 2020
1 parent 0cb50b8 commit 961847d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/translators/ui5Framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const utils = {
if (!project.framework) {
return;
}
if (project.specVersion !== "2.0") {
if (project.specVersion !== "2.0" && project.specVersion !== "2.1") {
log.warn(`Project ${project.metadata.name} defines invalid ` +
`specification version ${project.specVersion} for framework.libraries configuration`);
return;
Expand Down Expand Up @@ -239,7 +239,8 @@ module.exports = {
});
queue.push(...project.dependencies);

if (project.specVersion === "2.0" && project.framework && project.framework.libraries) {
if ((project.specVersion === "2.0" || project.specVersion === "2.1") &&
project.framework && project.framework.libraries) {
const frameworkDeps = project.framework.libraries
.filter((dependency) => {
if (dependency.optional && frameworkLibs[dependency.name]) {
Expand Down

0 comments on commit 961847d

Please sign in to comment.