Skip to content

Commit

Permalink
[FIX] versionInfo: Fix pattern to glob for .library files
Browse files Browse the repository at this point in the history
The pattern should only match .library files within the resource folder. Otherwise it is possible to find additional .library files, e.g. from unit tests.
  • Loading branch information
svbender committed Feb 21, 2020
1 parent 47d4b55 commit 3621f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/versionInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const createVersionInfoProcessor = require("@ui5/builder").processors.versionInf
*/
function createMiddleware({resources, tree: project}) {
return function versionInfo(req, res, next) {
resources.dependencies.byGlob("/**/.library")
resources.dependencies.byGlob("/resources/**/.library")
.then((resources) => {
resources.sort((a, b) => {
return a._project.metadata.name.localeCompare(b._project.metadata.name);
Expand Down

0 comments on commit 3621f78

Please sign in to comment.