From 116708b684da5a3bff28a9df4cbe793cdca37f68 Mon Sep 17 00:00:00 2001 From: Norbert Dopjera Date: Wed, 11 Sep 2024 02:21:09 +0200 Subject: [PATCH] feat: [#631] format new sources --- src/cli.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.ts b/src/cli.ts index be27d35b..00222dba 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -8,7 +8,7 @@ import {join, resolve, dirname} from 'path' import {compile, DEFAULT_OPTIONS, Options} from './index' import {pathTransform, error, parseFileAsJSONSchema, justName} from './utils' import {ParserOptions as $RefOptions} from '@apidevtools/json-schema-ref-parser' -import { merge } from 'lodash' +import {merge} from 'lodash' main( minimist(process.argv.slice(2), { @@ -168,7 +168,7 @@ function parseRefOptions(argv: minimist.ParsedArgs) { // argv default value already contains predefined $refOptions key if (argv.refOptions) { const parsedRefOptions: Partial<$RefOptions> = JSON.parse(argv.refOptions) - merge(argv, { $refOptions: parsedRefOptions }) + merge(argv, {$refOptions: parsedRefOptions}) } } catch (e) { error("Couldn't parse argument --refOptions, make sure it's a valid JSON string.")