Skip to content

Commit

Permalink
fix: 🐛 apply default barrel file name in conversion options
Browse files Browse the repository at this point in the history
  • Loading branch information
nivekcode committed Oct 4, 2020
1 parent c11f393 commit f8d4e9e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/options/config-collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ const mergeWithDefaults = async (
info(`No preCompileSources flag provided, "${DEFAULT_OPTIONS.exportCompleteIconSet}" will be used`);
}

if (!(configOptions as FileConversionOptions).barrelFileName) {
(configOptions as FileConversionOptions).barrelFileName = DEFAULT_OPTIONS.barrelFileName;
info(`No preCompileSources flag provided, "${DEFAULT_OPTIONS.barrelFileName}" will be used`);
}

return configOptions as FileConversionOptions;
}
return configOptions as ConstantsConversionOptions;
Expand Down

0 comments on commit f8d4e9e

Please sign in to comment.