mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
use includes instead of indexOf
use _.uniq instead of filter&indexOf
This commit is contained in:
@@ -156,7 +156,7 @@ function build(targets, options, callback) {
|
||||
target = target.toLowerCase().replace(/-/g, '');
|
||||
if (!aliases[target]) {
|
||||
winston.warn('[build] Unknown target: ' + target);
|
||||
if (target.indexOf(',') !== -1) {
|
||||
if (target.includes(',')) {
|
||||
winston.warn('[build] Are you specifying multiple targets? Separate them with spaces:');
|
||||
winston.warn('[build] e.g. `./nodebb build adminjs tpl`');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user