get tests passing

This commit is contained in:
Rich Harris
2018-05-04 17:19:39 -04:00
parent 210d03fb06
commit b525eb6480
3 changed files with 7 additions and 8 deletions

View File

@@ -23,6 +23,7 @@ export default function create_routes({ files } = { files: glob.sync('**/*.*', {
parts
};
})
.filter(Boolean)
.filter((a, index, array) => {
const found = array.slice(index + 1).find(b => a.base === b.base);
if (found) found.files.push(...a.files);