Defining Additional repositories for drupal library types in module composer doesn't work.
Unfortunately installing js libraries from a module's composer file doesn't work. The repositories for installing the additional drupal libraries, have to be defined in the project root's composer file.
Edited by Kenzie De Schepper