Open Hi-Fi opened 3 years ago
In package.json I have following repo definition (format correct that's provided by Bitbucket DataCenter):
package.json
"repository": { "type": "git", "url": "https://bb.example.com/scm/project1/repo1.git" },
When this is parsed, following is obtained:
npx get-pkg-repo package.json { browse: [Function (anonymous)], domain: 'bb.example.com', project: 'repo1', type: null, user: 'scm/project1' }
Bitbucket uses that scm part only at clone URLs. Cloning without it doesn't work, but also UI URLs with it doesn't work (only special case is that full URL, that goes to repo front page).
scm
Expected
{ browse: [Function (anonymous)], domain: 'bb.example.com', project: 'repo1', type: null, user: 'project1' }
In
package.json
I have following repo definition (format correct that's provided by Bitbucket DataCenter):When this is parsed, following is obtained:
Bitbucket uses that
scm
part only at clone URLs. Cloning without it doesn't work, but also UI URLs with it doesn't work (only special case is that full URL, that goes to repo front page).Expected