Skip to content

Commit

Permalink
feat(reflect): Expose Assembly metadata field (#542)
Browse files Browse the repository at this point in the history
This enables tools that use `jsii-reflect` to consume and reason over
the values in the metadata field.
  • Loading branch information
RomainMuller authored Jun 19, 2019
1 parent c6b891b commit 9b35e98
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/jsii-reflect/lib/assembly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ export class Assembly {
return this.spec.description;
}

/**
* The metadata associated with the assembly, if any.
*/
public get metadata(): { readonly [key: string]: any } | undefined {
return this.spec.metadata;
}

/**
* The url to the project homepage. Maps to "homepage" from package.json.
*/
Expand Down

0 comments on commit 9b35e98

Please sign in to comment.