Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Commit

Permalink
Generate files relative to the /dist/ folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Bersier committed Dec 14, 2018
1 parent 2fa19a5 commit 98c1895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions booklistgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ booklist.forEach(book => {
.split('\n');

let bookObj = {
folder: `${rootFolder}/${book}`,
folder: `../${rootFolder}/${book}`,
name: bookData[0],
kanji: bookData[1],
author: bookData[2],
Expand All @@ -19,7 +19,7 @@ booklist.forEach(book => {
BBG: bookData[5]
};

bookObj.chapters = fs.readdirSync(bookObj.folder)
bookObj.chapters = fs.readdirSync(`${rootFolder}/${book}`)
.filter(chapter => {
return fs.lstatSync(`${rootFolder}/${book}/${chapter}`).isDirectory()
});
Expand Down

0 comments on commit 98c1895

Please sign in to comment.