mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 23:52:58 +01:00
avoid outdated error
when use github address as module
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = function(Meta) {
|
||||
var pkgData = JSON.parse(pkgData),
|
||||
ok = semver.satisfies(pkgData.version, pkg.dependencies[module]);
|
||||
|
||||
if (ok || pkgData._fromGithub) {
|
||||
if (ok || pkgData._resolved.indexOf('//github.com') != -1) {
|
||||
next(true);
|
||||
} else {
|
||||
process.stdout.write('[' + 'outdated'.yellow + '] ' + module.bold + ' v' + pkgData.version + ', requires ' + pkg.dependencies[module] + '\n')
|
||||
|
||||
Reference in New Issue
Block a user