mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-11 15:10:45 +01:00
allow use github module
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) {
|
||||
if (ok || pkgData._fromGithub) {
|
||||
next(true);
|
||||
} else {
|
||||
process.stdout.write('[' + 'outdated'.yellow + '] ' + module.bold + ' v' + pkgData.version + ', requires ' + pkg.dependencies[module] + '\n')
|
||||
@@ -38,4 +38,4 @@ module.exports = function(Meta) {
|
||||
callback(!ok && global.env !== 'development' ? new Error('dependencies-out-of-date') : null);
|
||||
});
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user