Skip to content

Commit

Permalink
feat(merge): add support for optional options in merge function
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuuGan committed Jan 5, 2020
1 parent 3f4ad12 commit 06c428a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -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 };

0 comments on commit 06c428a

Please sign in to comment.