Skip to content

Commit 6954103

Browse files
committed
Bugfix for recursive paths
1 parent fcd925d commit 6954103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/create-dot-index-files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function createDotIndexFiles (rootPath, options={}) {
1313
const newContent = createIndexFileContent([ ...files, ...directories ], rootPath, options)
1414
if (newContent !== existingContent) fs.writeFileSync(to('.index.js'), newContent)
1515
}
16-
directories.forEach(dir => createDotIndexFiles(to(dir)))
16+
directories.forEach(dir => createDotIndexFiles(to(dir), options))
1717
}
1818

1919
function attemptRead (file) {

0 commit comments

Comments
 (0)