add support for repositories defined as str in package.json