backend-common: fix for args.config not always being an array

This commit is contained in:
Patrik Oldsberg
2020-10-21 10:49:41 +02:00
parent fac3026699
commit 4a6a5149df
+1 -1
View File
@@ -32,7 +32,7 @@ type Options = {
*/
export async function loadBackendConfig(options: Options): Promise<Config> {
const args = parseArgs(options.argv);
const configOpts: string[] = args.config ?? [];
const configOpts: string[] = [args.config ?? []].flat();
/* eslint-disable-next-line no-restricted-syntax */
const paths = findPaths(__dirname);