Skip to content

Commit

Permalink
manifestResources parameter contains only embedded
Browse files Browse the repository at this point in the history
manifests and not the library manifest anymore

in the tests adjust expected version info content the
same order of properties as the json string result
would contain for better readability.
  • Loading branch information
tobiasso85 committed Jan 15, 2021
1 parent ea58d08 commit 874b160
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 115 deletions.
4 changes: 3 additions & 1 deletion lib/tasks/generateVersionInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ module.exports = async ({workspace, dependencies, options: {rootProject, pattern
const libraryManifest = manifestResources.find((manifestResource) => {
return manifestResource.getPath() === `/resources/${namespace}/${MANIFEST_JSON}`;
});
const embeddedManifests =
manifestResources.filter((manifestResource) => manifestResource !== libraryManifest);
return {
libraryManifest,
manifestResources,
manifestResources: embeddedManifests,
name: dotLibResource._project.metadata.name,
version: dotLibResource._project.version
};
Expand Down
Loading

0 comments on commit 874b160

Please sign in to comment.