mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
Shorten dependencies in info
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = class InfoCommand extends Command {
|
||||
const repo = dep[1].replace('github:', '').split('/');
|
||||
return `[${dep[0]}](https://github.com/${repo[0]}/${repo[1].replace(/#.+/, '')})`;
|
||||
}
|
||||
return `[${dep[0]}](https://www.npmjs.com/package/${dep[0]})`;
|
||||
return `[${dep[0]}](https://npmjs.com/${dep[0]})`;
|
||||
}).join(', ');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user