Skip to content

Commit 9b35e98

Browse files
authored
feat(reflect): Expose Assembly metadata field (#542)
This enables tools that use `jsii-reflect` to consume and reason over the values in the metadata field.
1 parent c6b891b commit 9b35e98

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/jsii-reflect/lib/assembly.ts

+7
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ export class Assembly {
3636
return this.spec.description;
3737
}
3838

39+
/**
40+
* The metadata associated with the assembly, if any.
41+
*/
42+
public get metadata(): { readonly [key: string]: any } | undefined {
43+
return this.spec.metadata;
44+
}
45+
3946
/**
4047
* The url to the project homepage. Maps to "homepage" from package.json.
4148
*/

0 commit comments

Comments
 (0)