diff --git a/src/scripts/run.ts b/src/scripts/run.ts index 056fb53c..3a910bbc 100644 --- a/src/scripts/run.ts +++ b/src/scripts/run.ts @@ -31,7 +31,7 @@ export const run = ( if (silent) consola.level = LogLevels.silent; - if (ALL_LAYOUTS.findIndex((name) => layout == name) === -1) { + if (!ALL_LAYOUTS.includes(layout)) { consola.error( `Layout "${layout}" is not a valid layout. Use one from {${ALL_LAYOUTS.join(', ')}}`