diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fcadb2c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text eol=lf diff --git a/src/utilities/writeIndex.js b/src/utilities/writeIndex.js index eea57fc..d12d96a 100644 --- a/src/utilities/writeIndex.js +++ b/src/utilities/writeIndex.js @@ -17,7 +17,7 @@ export default (directoryPaths, options = {}) => { const config = readIndexConfig(directoryPath); const optionsWithConfig = Object.assign({}, options, {config}); const siblings = readDirectory(directoryPath, optionsWithConfig); - const indexCode = createIndexCode(siblings, {config}); + const indexCode = createIndexCode(siblings, optionsWithConfig); const indexFilePath = path.resolve(directoryPath, 'index.js'); fs.writeFileSync(indexFilePath, indexCode);