repository to package json