Skip to content

Commit

Permalink
corrected build
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed May 10, 2023
1 parent 285a9a2 commit e64115a
Show file tree
Hide file tree
Showing 2 changed files with 174 additions and 61 deletions.
9 changes: 5 additions & 4 deletions lib/number.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class Number {
if (module.parent)
module.exports = Number;
else
for (var doc of fs.readdirSync(__dirname + "/..")) if (doc.startsWith("odata-")) {
console.log(doc);
new Number(doc).build(fs.createWriteStream(__dirname + "/../" + doc + ".md"));
}
for (var doc of fs.readdirSync(__dirname + "/..", {withFileTypes: true}))
if (doc.isDirectory() && doc.name.startsWith("odata-")) {
console.log(doc.name);
new Number(doc.name).build(fs.createWriteStream(__dirname + "/../" + doc.name + ".md"));
}
Loading

0 comments on commit e64115a

Please sign in to comment.