We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
topcoder-lib-setup
1 parent 69246c5 commit 5573f19Copy full SHA for 5573f19
bin/topcoder-lib-setup
@@ -46,8 +46,8 @@ const HELP = [{
46
* into NPM's install command.
47
*/
48
function generateTargetPackage(entry) {
49
- if (entry[1].match(/^https?:\/\//)) return entry[1];
50
- if (entry[1].match(/^[^~]/)) return `${entry[0]}@${entry[1].slice(1)}`;
+ if (entry[1].match(/^(git\+)?https?:\/\//)) return entry[1];
+ if (entry[1].match(/^[\^~]/)) return `${entry[0]}@${entry[1].slice(1)}`;
51
return `${entry[0]}@${entry[1]}`;
52
}
53
0 commit comments