From 06c428a8f3c49bddd6fa56df15527b5de86df1fc Mon Sep 17 00:00:00 2001 From: Valery Aligorsky Date: Sun, 5 Jan 2020 11:11:33 +0100 Subject: [PATCH] feat(merge): add support for optional options in merge function --- lib/index.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/index.ts b/lib/index.ts index af55c4d..b36d70e 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -1,13 +1,10 @@ -import { Merger } from './merger'; import { FileAnalyzer } from './fileAnalyzer'; +import { Merger, SolMergerOptions } from './merger'; -const merge = async (file: string) => { - const merger = new Merger(); +const merge = async (file: string, options: SolMergerOptions = {}) => { + const merger = new Merger(options); return merger.processFile(file, true); } -export { - Merger, - FileAnalyzer, - merge -} +export { Merger, FileAnalyzer, merge }; +