bin: fix TypeError: modules.presets.join is not a function
This commit is contained in:
parent
1b17e08288
commit
8a69b3b4d0
@ -99,8 +99,9 @@ function getOptionValue(opt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hasOption('--list-presets')) {
|
if (hasOption('--list-presets')) {
|
||||||
console.log(modules.presets.join(os.EOL));
|
const {presets: {presets, legacyPresets}} = modules;
|
||||||
console.log(modules.legacyPresets.map((name) => `${chalk.gray(name)} -> ${name.substr(4)}`).join(os.EOL));
|
console.log(presets.join(os.EOL));
|
||||||
|
console.log(legacyPresets.map((name) => `${chalk.gray(name)} -> ${name.substr(4)}`).join(os.EOL));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user