(pkg)
| 173 | } |
| 174 | |
| 175 | getRepositoryFromPackageJson (pkg) { |
| 176 | const info = gitinfo.fromUrl(pkg.repository?.url || pkg?.repository) |
| 177 | if (!info) { |
| 178 | return null |
| 179 | } |
| 180 | const repository = info.user + '/' + info.project |
| 181 | const type = info.type |
| 182 | return { repository, type } |
| 183 | } |
| 184 | |
| 185 | async optionalPkgJson () { |
| 186 | try { |