finalise libraries.yml and attached library